cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r577335 - /cayenne/main/trunk/itests/jpa-chapter2/src/main/java/org/apache/cayenne/jpa/itest/ch2/entity/CollectionFieldPersistenceEntity.java
Date Wed, 19 Sep 2007 15:42:57 GMT
Author: aadamchik
Date: Wed Sep 19 08:42:57 2007
New Revision: 577335

URL: http://svn.apache.org/viewvc?rev=577335&view=rev
Log:
CAY-860 JPA no joins created for to-many relationship

Modified:
    cayenne/main/trunk/itests/jpa-chapter2/src/main/java/org/apache/cayenne/jpa/itest/ch2/entity/CollectionFieldPersistenceEntity.java

Modified: cayenne/main/trunk/itests/jpa-chapter2/src/main/java/org/apache/cayenne/jpa/itest/ch2/entity/CollectionFieldPersistenceEntity.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/itests/jpa-chapter2/src/main/java/org/apache/cayenne/jpa/itest/ch2/entity/CollectionFieldPersistenceEntity.java?rev=577335&r1=577334&r2=577335&view=diff
==============================================================================
--- cayenne/main/trunk/itests/jpa-chapter2/src/main/java/org/apache/cayenne/jpa/itest/ch2/entity/CollectionFieldPersistenceEntity.java
(original)
+++ cayenne/main/trunk/itests/jpa-chapter2/src/main/java/org/apache/cayenne/jpa/itest/ch2/entity/CollectionFieldPersistenceEntity.java
Wed Sep 19 08:42:57 2007
@@ -32,13 +32,13 @@
     @Id
     protected int id;
 
-    @OneToMany
+    @OneToMany(mappedBy="entity")
     protected Collection<HelperEntity1> collection;
 
-    @OneToMany
+    @OneToMany(mappedBy="entity")
     protected Set<HelperEntity2> set;
 
-    @OneToMany
+    @OneToMany(mappedBy="entity")
     protected List<HelperEntity3> list;
 
     public Collection<HelperEntity1> getCollection() {



Mime
View raw message