According to 
http://en.wikibooks.org/wiki/Java_Persistence/OneToMany#Undirectional_OneToMany.2C_No_Inverse_ManyToOne.2C_No_Join_Table_.28JPA_2.0.29
this article  JPA 2.0 supports Unidirectional OneToMany relationships,
without having to use a join table.

However, if I try to model this with OpenJPA 2.1.1, using the <join-column>
tag, I receive an error "You have supplied columns for
my.package.MyEntity.myList, but this mapping cannot have columns in this
context."

Does OpenJPA 2.1.1 support Unidirectional OneToMany relationships without a
join table? If not, will this be part of OpenJPA 2.2?

P.S. If I look at the "JSR-317 Persistence 2.0 Final Spec", it only seems to
specify Unidirectional OneToMany relationships with join tables.



--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Unidirectional-OneToMany-without-join-table-tp6780201p6780201.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to