"SchemaManagementException: Schema-validation: missing sequence [hibernate_sequence]" in JBoss EAP
Issue
- Migrating from Hibernate 3 / EAP 5 to Hibernate 5 / EAP 7
hibernate.hbm2ddl.auto
is set tovalidate
in thepersistence.xml
(or the legacy/pre-JPAhibernate.cfg.xml
)-
Encountering the exception below when deploying the application:
... org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing sequence [hibernate_sequence] at org.hibernate.tool.schema.internal.AbstractSchemaValidator.validateSequence(AbstractSchemaValidator.java:184) ... at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:310) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:467) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:939) ...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7
- Hibernate 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.