| Author |
Sequence number issue
|
hong ye
Greenhorn
Joined: Nov 11, 2008
Posts: 7
|
|
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
Joined: Mar 07, 2010
Posts: 1282
|
|
|
That depends on your id generation strategy.
|
[How To Ask Questions][Read before you PM me]
|
 |
 |
|
|
subject: Sequence number issue
|
|
|