diff --git a/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java b/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java index 5b6826c1a..41789bbb4 100644 --- a/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java +++ b/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java @@ -107,7 +107,7 @@ public class DeliveryPage extends JPanel { _showDelivered.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - List selected = getOrders(PurchaseOrder.Status.DELEVERED); + List selected = getOrders(PurchaseOrder.Status.DELIVERED); _orders.getDataModel().updateData(selected); _title.setText(selected.size() + " Delivered PurchaseOrder"); } diff --git a/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java b/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java index ea0766074..d1a21ab45 100644 --- a/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java +++ b/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java @@ -45,7 +45,7 @@ import javax.persistence.TemporalType; @SuppressWarnings("serial") @Entity public class PurchaseOrder implements Serializable { - public enum Status {PENDING, DELEVERED}; + public enum Status {PENDING, DELIVERED}; @Id @GeneratedValue @@ -96,9 +96,9 @@ public class PurchaseOrder implements Serializable { } public void setDelivered() { - if (this.status == Status.DELEVERED) + if (this.status == Status.DELIVERED) throw new IllegalStateException(this + " has been delivered"); - this.status = Status.DELEVERED; + this.status = Status.DELIVERED; this.deliveredOn = new Time(System.currentTimeMillis()); }