views:

1046

answers:

1

liquibase is a perfect alternative to hibernate's hbm2ddl_auto property if you are using xml-mapping. But Im using JPA annotation (hibernate annotations). Is it possible to use liquibase then?

+5  A: 

Yes, LiquiBase uses hibernate's metadata classes, which are the same whether you use xml mappings or annotations. You do need a hibernate config file to point liquibase to, but your mappings can be xml or jpa annotations.

Nathan Voxland
Could you explain a little bit more detailed, or point me to a url
Schildmeijer
The liquibase hibernate documentation is at http://www.liquibase.org/manual/hibernate. Is there anything in particular you are wondering?
Nathan Voxland
The source should build fine. Send me an email nathan [at] voxland.net and I can help you out
Nathan Voxland