• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA Many to Many Relation saving problem!

 
Raghunath Nandyala
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All ,

I'm trying to implement Many-Many relation. But while saving the relation table is not getting saved. Means relation is not happening.

Please suggest me ..

code:


thanks
raghu
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are setting the same HashSet to both Book objects. Each Book must have its own collection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic