We're updating the issue view to help you get more done. 

Upgrade to use hibernate 4 schema export

Description

Schema export is currently being done using hibernate3:hbm2ddl
The equivalent for hibernate 4 is something like:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 <plugin> <groupId>de.juplo</groupId> <artifactId>hibernate4-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <username>${build.jdbc.username}</username> <password>${build.jdbc.password}</password> <url>${build.jdbc.url}</url> <driverClassName>${build.jdbc.driverClassName}</driverClassName> <hibernateDialect>${build.hibernate.dialect}</hibernateDialect> <hibernateConfig>target/test-classes/hibernate.cfg.xml</hibernateConfig> <hibernateNamingStrategy>org.hibernate.cfg.DefaultNamingStrategy</hibernateNamingStrategy> <force>true</force> <skip>${skipTests}</skip> </configuration> <executions> <execution> <phase>process-test-classes</phase> <goals> <goal>export</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>${jdbc.groupId}</groupId> <artifactId>${jdbc.artifactId}</artifactId> <version>${jdbc.version}</version> </dependency> </dependencies> </plugin>

However, this generates different SQL to Hibernate 3, which isn't desirable as it makes migration difficult.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Affects versions

2.1

Priority

Minor