• 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
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!