hibernate - Sequence issue migration of spring 1.3.4 to spring 3.3.2 - Stack Overflow

I am facing an issue with hibernate sequence id generation in the spring 3.3.2. Here my consern is same

I am facing an issue with hibernate sequence id generation in the spring 3.3.2. Here my consern is same id is generating in my spring 3.3.2. But that id is already generated in existing spring of 1.3.4. Now, in my spring 3.3.2 same hibernate need to use which is used in the spring 1.3.4. Is it possible to use in my spring 3.3.2.

In spring 1.3.4 in code allocatedsize i00 and in my DB increment size is also 100. Same I had used in my spring 3.3.2 but it is not working fine.

Ok, i will explain the detailed scenario here, in the spring 1.3.1 if the allocated size is 100 and last number is 600 then id is generating as 6000. But in spring 3.3.2 same formula is not working. The next id generation is 600*100+600=60600.

formula is Spring 1.3.1 : generated_id = (MaxId * increment_size) + 0

spring 3.3.2 : generated_id = (sequence_value * increment_size) + offset.

Here my concern is same id generation logic i need to use in the spring 3.3.2.

Note: In my DB(Oracle) I had large data in my project. And, here i want to change only at code level. i am unable change in the db. Please suggest any suggestion based on t=like this only.

In my db increment size is 100 and in dao class allocated size is also 100.

Thanks and regards P.Avinash

I want to same id generation in my spring boot 3.3.2 version which same i used in the spring 1.3.4. If possible please tell me about that.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745210650a4616818.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信