• 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?
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!