From 61696dbd7e5cb16d49a8c4170b8c1dd37cd2d6bb Mon Sep 17 00:00:00 2001 From: "Kevin W. Sutter" Date: Thu, 20 May 2010 21:11:41 +0000 Subject: [PATCH] Corrected spelling of "DELEVERED". :-) git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@946788 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/openbook/client/DeliveryPage.java | 2 +- .../src/main/java/openbook/domain/PurchaseOrder.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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()); }