javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by svenhornberg
, 1 year ago
[PersistenceUnit: default] Unable to build Hibernate SessionFactory
via Stack Overflow by p_x_h
, 1 year ago
[PersistenceUnit: entityManager] Unable to build Hibernate SessionFactory
via Stack Overflow by MTCoster
, 10 months ago
[PersistenceUnit: myunit] Unable to build Hibernate SessionFactory
via GitHub by JWGmeligMeyling
, 4 months ago
[PersistenceUnit: athena] Unable to build Hibernate SessionFactory
via Stack Overflow by Joshua Taylor
, 2 years ago
[PersistenceUnit: unit] Unable to build Hibernate SessionFactory
via Stack Overflow by Albin
, 1 year ago
[PersistenceUnit: process-PU] Unable to build Hibernate SessionFactory
org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [hash] in table [complexkey]
at org.hibernate.tool.schema.internal.SchemaValidatorImpl.validateTable(SchemaValidatorImpl.java:85)
at org.hibernate.tool.schema.internal.SchemaValidatorImpl.doValidation(SchemaValidatorImpl.java:50)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:91)
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:473)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:338)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)

Users with the same issue

28 times, 5 months ago
13 times, 5 months ago
14 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.