Support for schema migrations with JPA?

brabster picture brabster · Jan 12, 2010 · Viewed 10.8k times · Source

I've been briefly looking at JPA recently, and I was wondering what the deal is with database schema migrations and staying lined up with the classes you've created.

Is there support in JPA for this stuff? Utilities? Best Practises?

Cheers!

Answer

lexicore picture lexicore · Mar 29, 2010

I won't rely on JPA providers to update the database schema. Check Liquibase for one of the good approaches.