Jay D. McHugh-2 wrote:
>
>
> Hey Mark,
>
> That one caught me too.
>
> The JPA spec says that you have to use a mapping table to do a
> one-to-many relationship.
>
> But, OpenJPA has a proprietary annotation that you can use if you know
> that you will not be using any other persistence engines:
>
> @ElementJoinColumn(name="<child table ref column>"
> referencedColumnName="<parent table ref column>")
>
> That should allow you to bypass the 'standard' JPA relationship mapping
> and get your one-to-many working.
>
> Jay
>
>
>
>
>
Thank you Jay
--
View this message in context:
http://www.nabble.com/Problem-with-JPA-MySQL-and-Geronimo2.0.2-tf4758860s134.html#a13610277
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.