divinespear / jpa-schema-maven-plugin

Maven plugin for generate database schema or DDL scripts from JPA entities
http://divinespear.github.io/jpa-schema-maven-plugin
Apache License 2.0
21 stars 19 forks source link

Upgrade Hibernate to 3.4.1 #6

Closed keesvandieren closed 10 years ago

keesvandieren commented 10 years ago

Currently the plugin is using 4.3.0.Beta3.

Tried to upgrade it to 4.3.1, but Hibernate has changed its api so this does not work. It results in following error:

java.lang.ClassNotFoundException: org.hibernate.engine.jdbc.dialect.spi.DatabaseInfoDialectResolver$DatabaseInfo

The code of plugin needs to be updated to support Hibernate 4.3.1.

divinespear commented 10 years ago

there is a problem - a BIG problem - on newer Hibernate implementations, they refuses schema generation using Persistence.generateSchema without JDBC connection. so I cannot move newer versions yet. I'll try find answers or hacks... please pray for luck.

(I'm not closing this but just keep opened.)

divinespear commented 10 years ago

I found hack; pass mock connection for script-only action. It will be released today as 0.1.7

keesvandieren commented 10 years ago

Using it now, thanks, you are my hero of today :)