• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate IDENTITY VS Sequesce

 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a column as ID with generation type as IDENTITY,How can I make sure it will generate unique ids as it is giving constraint violation exception,ideally it should generate next available value,

Please reply and what is then difference between sequence and IDENTITY,Please clarify,

Thanks,
Uj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic