[jboss-user] [EJB 3.0] - Re: ManyToMany problem

2006-09-15 Thread andydale
I have decided to always annotate the getters of each class variable as this seems to work, and in all the examples i have managed to find this seems to be the "done thing" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971872#3971872 Reply to the post :

[jboss-user] [EJB 3.0] - Re: ManyToMany problem

2006-09-08 Thread dcbyers71
Check your entity objects to determine where the @Id annotation is located. The examples that I have seen thus far have failed to highlight one sneaky piece of syntax for entities participating in relationships...the @Id element must modify the getXxx method for the ID field instead of modifyin

[jboss-user] [EJB 3.0] - Re: ManyToMany problem

2006-08-17 Thread scotttam
As far as I understand the mappedBy, it is mapped to the getter name using bean rules on the owning side of the relationship. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965822#3965822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[jboss-user] [EJB 3.0] - Re: ManyToMany problem

2006-08-16 Thread andydale
Hi, I figured out that the problem was with the mappedBy in the non owning side of the ManyToMany relationship. What i still do not completely understand is what it maps to, is mappedBy = "students" mapping to the java.util.Set variable ? it can't map to the name because it is not students so

[jboss-user] [EJB 3.0] - Re: ManyToMany problem

2006-08-16 Thread mwoelke
Hi, First, you are not forced to use the JoinTable annotation. It works fine without (configure by exception - one goal of the ejb3 spec). I think the problem is what u specified with the mappedBy parameter of the manytomany. I think it should be 'students'. It should be the name of the property