openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r789874 - in /openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria: Customer.java Order.java
Date Tue, 30 Jun 2009 18:48:40 GMT
Author: faywang
Date: Tue Jun 30 18:48:40 2009
New Revision: 789874

URL: http://svn.apache.org/viewvc?rev=789874&view=rev
Log:
update entity definitions

Modified:
    openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Customer.java
    openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Order.java

Modified: openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Customer.java
URL: http://svn.apache.org/viewvc/openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Customer.java?rev=789874&r1=789873&r2=789874&view=diff
==============================================================================
--- openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Customer.java
(original)
+++ openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Customer.java
Tue Jun 30 18:48:40 2009
@@ -43,7 +43,7 @@
 	private String lastName;
 	private String name;
 	
-	@OneToMany
+	@OneToMany(mappedBy="customer")
 	private Set<Order> orders = new HashSet<Order>(); 
 	
 	private int status;

Modified: openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Order.java
URL: http://svn.apache.org/viewvc/openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Order.java?rev=789874&r1=789873&r2=789874&view=diff
==============================================================================
--- openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Order.java
(original)
+++ openjpa/branches/subquery/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/Order.java
Tue Jun 30 18:48:40 2009
@@ -38,6 +38,7 @@
     private int quantity;
 	private double totalCost;
 	private int count;
+	private String name;
 	
 	@ManyToOne
 	private Customer customer;
@@ -93,6 +94,14 @@
         this.delivered = delivered;
     }
 
+    public String getName() {
+        return name;
+    }
+    
+    public void setName(String name) {
+        this.name = name;
+    }
+
     public Timestamp getOrderTs() {
         return orderTs;
     }



Mime
View raw message