• Post Reply Bookmark Topic Watch Topic
  • New Topic

Many to many mapping with auto increment Hibernate

Dilshan De Silva
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add auto increment number as PK to intermediate table in M:M mapping. I used oracle db and problem is when I save object it only insert PK's of other 2 tables to intermediate table. Hibernate not calling the sequence and there for it gives the error that null value cant insert to intermediate table.
Is there way to call sequence in intermediate table?
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!