Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sequence number issue

 
hong ye
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Our system uses JPA to map classes to tables.

My question is: our system has a Customer table which has total 1114444 records and max number is 1533000. but the last number for Customer_seq in Oracle databse is 36000. Don`t match. but no unique constraint issue.

Can someone explain why? how JPA or hibernate generates next sequence value to insert into Customer table?

Thanks
Hongyi
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on your id generation strategy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic