openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Woods <dwo...@apache.org>
Subject Question about JUnit Bi-directional and OneToOne tests
Date Wed, 11 Feb 2009 14:19:23 GMT
I would expect the BidiParent/BidiChild entities under -
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/
to have a bi-directional mappedBy annotation for the OneToOne relations, 
but the child doesn't -

BidiParent -
     @OneToOne(fetch=FetchType.LAZY, mappedBy="oneToOneParent")
     private BidiChild oneToOneChild;

BidiChild -
     @OneToOne(fetch=FetchType.LAZY)
     private BidiParent oneToOneParent;


Is this correct?


-Donald

Mime
View raw message