Is there a tool for migrating a database schema where the schema is specified using Hibernate?

I'm used to Django South http://south.aeracode.org/ , which allows you to transfer schemas and data for Django projects. Is there a similar tool for Hibernate projects?

+4
source share
2 answers

Hibernate provides its own (limited) tools for schema migration. A few warnings are attached to it, including the warning β€œdo not use it for production copies”, although I personally have not experienced any problems with its use with respect to the prod system.

I would not recommend it for data transfer or zooming in on large-scale relational matching, but for simple changes it is usually adequate (at least you can run it to create the necessary DDL statements, which can later be started manually).

0
source

LiquiBase offers Hibernate support but I have no practical experience. On the web page:

The LiquiBase-Hibernate integration writes the database changes needed for your current Hibernate mapping to a change log file that you can check and modify as necessary before you execute it.

+1
source

Source: https://habr.com/ru/post/1311793/


All Articles