开发者

"version" lock value for populating tables

开发者 https://www.devze.com 2022-12-19 20:58 出处:网络
I need to populate a couple of tables from a db that was c开发者_运维技巧reated when the grails app was run. I kept the \"version\" column for hibernate\'s locking strategy, so I need to know what val

I need to populate a couple of tables from a db that was c开发者_运维技巧reated when the grails app was run. I kept the "version" column for hibernate's locking strategy, so I need to know what value is safe to put in that field when importing the data to those tables.


The initial value that Hibernate uses is 0 but any value is fine.


If you're going to be modifying existing records while your application is running be sure to increment the value of 'version'.

0

精彩评论

暂无评论...
验证码 换一张
取 消