[jboss-user] [EJB/JBoss] - mapping 0..1 association

arvindsj do-not-reply at jboss.com
Tue Nov 7 01:01:29 EST 2006


I was wondering what is the best approach to map an association of the kind where one side is 0..1 and the other is 0..*

I tried using OneToMany annotation along with nullable set to true, but that doesn't work. 

Do I have to do this using ManyToMany and provide code to check and enforce that one side does not have more than 1 instance?


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

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

More information about the jboss-user mailing list