openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r946788 - in /openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook: client/DeliveryPage.java domain/PurchaseOrder.java
Date Thu, 20 May 2010 21:11:41 GMT
Author: kwsutter
Date: Thu May 20 21:11:41 2010
New Revision: 946788

URL: http://svn.apache.org/viewvc?rev=946788&view=rev
Log:
Corrected spelling of "DELEVERED".  :-)

Modified:
    openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java
    openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java

Modified: openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java?rev=946788&r1=946787&r2=946788&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java
(original)
+++ openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/client/DeliveryPage.java
Thu May 20 21:11:41 2010
@@ -107,7 +107,7 @@ public class DeliveryPage extends JPanel
         _showDelivered.addActionListener(new ActionListener() {
             @Override
             public void actionPerformed(ActionEvent e) {
-                List<PurchaseOrder> selected = getOrders(PurchaseOrder.Status.DELEVERED);
+                List<PurchaseOrder> selected = getOrders(PurchaseOrder.Status.DELIVERED);
                 _orders.getDataModel().updateData(selected);
                 _title.setText(selected.size() + " Delivered PurchaseOrder");
             }

Modified: openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java?rev=946788&r1=946787&r2=946788&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java
(original)
+++ openjpa/trunk/openjpa-examples/openbooks/src/main/java/openbook/domain/PurchaseOrder.java
Thu May 20 21:11:41 2010
@@ -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 Se
     }
     
     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());
     }
     



Mime
View raw message