mirror of https://github.com/apache/openjpa.git
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:
parent
92a025c063
commit
61696dbd7e
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue