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 :
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
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
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
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