• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Many to many mapping with auto increment Hibernate

 
Dilshan De Silva
Greenhorn
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic