You should probably not use Hibernate to create / update the database schema. I assume that you have something like this in your configuration:
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
Just change the value to "verify", make changes to the mappings, and execute the ALTER TABLE statements separately.
Another option is to use an βupdateβ to let Hibernate figure out how to update the structure of your table. I suggest that you keep it in your hands and simply execute the DDL SQL manually.
source share