We use a table generator id strategy, and we’re updating our hibernate_sequences table whenever we insert new data.
The nature of updating that table is that we always want to do it, but only when migrations have been applied (i.e. not on a simple deployment where no database migrations occurred).
I’m thinking that we could define a changeset with the updates in, and have the changeset marked
- <changeSet afterMigrations=“true” …>
- <update table="hibernate_sequences>