Corrected spelling of "DELEVERED". :-)

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@946788 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2010-05-20 21:11:41 +00:00
parent 92a025c063
commit 61696dbd7e
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ public class DeliveryPage extends JPanel {
_showDelivered.addActionListener(new ActionListener() { _showDelivered.addActionListener(new ActionListener() {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
List<PurchaseOrder> selected = getOrders(PurchaseOrder.Status.DELEVERED); List<PurchaseOrder> selected = getOrders(PurchaseOrder.Status.DELIVERED);
_orders.getDataModel().updateData(selected); _orders.getDataModel().updateData(selected);
_title.setText(selected.size() + " Delivered PurchaseOrder"); _title.setText(selected.size() + " Delivered PurchaseOrder");
} }

View File

@ -45,7 +45,7 @@ import javax.persistence.TemporalType;
@SuppressWarnings("serial") @SuppressWarnings("serial")
@Entity @Entity
public class PurchaseOrder implements Serializable { public class PurchaseOrder implements Serializable {
public enum Status {PENDING, DELEVERED}; public enum Status {PENDING, DELIVERED};
@Id @Id
@GeneratedValue @GeneratedValue
@ -96,9 +96,9 @@ public class PurchaseOrder implements Serializable {
} }
public void setDelivered() { public void setDelivered() {
if (this.status == Status.DELEVERED) if (this.status == Status.DELIVERED)
throw new IllegalStateException(this + " has been delivered"); throw new IllegalStateException(this + " has been delivered");
this.status = Status.DELEVERED; this.status = Status.DELIVERED;
this.deliveredOn = new Time(System.currentTimeMillis()); this.deliveredOn = new Time(System.currentTimeMillis());
} }