|
I am using JBoss Wildfly 8.2.0 Final and Hibernate 4.3.7.Final. In my entities I use @GeneratedValue for id generation (without parameters). Since Wildfly sets the hibernate.id.new_generator_mappings to true (https://docs.jboss.org/author/display/WFLY8/JPA+Reference+Guide), the used id generation strategy is org.hibernate.id.enhanced.SequenceStyleGenerator. Using PostgreSQL, Hibernate Schema export creates the hibernate_sequence for this strategy as expected. However, using H2 with the driver supplied in Wildfly, the hibernate_sequence is not created during schema export. This leads to an error when an entity is persited.
|