I'm very new to EJB3 but have not had a problem doing stuff like this so far, 
so bear with me.

If you used a mappedBy on your OneToMany to the field in the ManyToOne 
class...the relationship should be automatic (implied)....otherwise you could 
use a @JoinColumn annotation to specify the field, if you must.

See here:

http://docs.jboss.org/ejb3/app-server/HibernateAnnotations/reference/en/html_single/index.html#d0e1018

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929419#3929419

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929419


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to