• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA -One to Many Mapping inserting only the first object

 
ignacio garcia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I'm using JPA, and i have the issue that in the relation One to Many Mapping inserting only the first object. Please help!!
 
ignacio garcia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have resolved the problem was that the two object have the same id, so it don't insert the second
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!