aspose file tools
The moose likes Object Relational Mapping and the fly likes Many-To-Many relationship not working in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Many-To-Many relationship not working in Hibernate" Watch "Many-To-Many relationship not working in Hibernate" New topic
Author

Many-To-Many relationship not working in Hibernate

Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 179

My entity Classes

Teacher


Section



Main Class


Everything works well if I include



before I call


Otherwise the generated JoinTable and Section table does not include section2 data
But my question is - As I have annotated in Teacher class the above things (saving section objects before teacher object) are not necessary.

Please show me some light ...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Many-To-Many relationship not working in Hibernate
 
Similar Threads
Stuck on manyToMany association
Getting stuck with persisting a M:M relationship
The link table of ManyToMany annotation is not updated in Hibernate
EJB QL w/ ManyToMany
deleting causes : not-null property references a null or transient value