Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One to many mapping

 
Swapnil Dharane
Ranch Hand
Posts: 55
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
I have two tables,Theater and Shows, which are joined by one to many mapping.I m trying to perform collection persistence as follows.


xml mapping


I m getting below logs(adding relavent logs here) and an IntegrityException



The problem is,newly generated theaterId is not being used when new show is being added.
Can anyone tell me why this is happening?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic