I am looking for a general solution for updating a database schema using ORM tools like JPOX or Hibernate. How do you do this in your projects?
The first solution that comes to my mind is to create your own mechanism for updating databases, while SQL scripts do all the work. But in this case, I will have to remember to create new scripts every time I update object mappings. And I still have to deal with low-level SQL queries, and not just define the mappings and let the ORM tools do all the work ...
So the question is how to do it right. Perhaps some tools can simplify this task (for example, I heard that Rails has such a mechanism), if so, please help me decide which ORM tool to choose for my next Java project.
source
share