hibernate - How to let liquibase generate IDs for @GeneratedValue(GenerationType.TABLE) properties? -
we pretty stuck next situation:
we have several jpa-mapped entities ids autogenerated means of @generatedvalue(strategy = generationtype.table)
annotations, orm hibernate 4. additionally using liquibase managing database migrations.
now have situation migration involves creation of new table , info existing tables has migrated new table. new table (i. e. according entity) has named strategy id generation. question how can savely create ids newly added rows within liquibase migration next constraints met:
it must possible generate sql script (via liquibase) performs migration (so custom classes migration can not used) migration must run against hsqldb , oracle of course, hibernate id generation must not corruptedany help on issue appreciated!
hibernate jpa liquibase
No comments:
Post a Comment