javax.persistence.PersistenceException: [PersistenceUnit: TestAuditPU] Unable to build EntityManagerFactory

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 Hibernate JIRA by Rino Heinen, 1 year ago
[PersistenceUnit: TestAuditPU] Unable to build EntityManagerFactory
via Hibernate JIRA by Rino Heinen, 1 year ago
[PersistenceUnit: TestAuditPU] Unable to build EntityManagerFactory
via Stack Overflow by damirah
, 2 years ago
[PersistenceUnit: PISProjektPU] Unable to build EntityManagerFactory
via eclipse.org by Unknown author, 2 years ago
[PersistenceUnit: mypu] Unable to build EntityManagerFactory
via eclipse.org by Unknown author, 1 year ago
[PersistenceUnit: mypu] Unable to build EntityManagerFactory
via questionclubs.com by Unknown author, 2 years ago
[PersistenceUnit: projetA] Unable to build EntityManagerFactory
org.hibernate.MappingException: Type not supported: org.hibernate.type.ManyToOneType
at org.hibernate.envers.configuration.metadata.IdMetadataGenerator.addIdProperties(IdMetadataGenerator.java:75)
at org.hibernate.envers.configuration.metadata.IdMetadataGenerator.addId(IdMetadataGenerator.java:120)
at org.hibernate.envers.configuration.metadata.AuditMetadataGenerator.generateFirstPass(AuditMetadataGenerator.java:374)
at org.hibernate.envers.configuration.EntitiesConfigurator.configure(EntitiesConfigurator.java:100)
at org.hibernate.envers.configuration.AuditConfiguration.(AuditConfiguration.java:86)
at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:99)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1396)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:891)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
at testaudit.Main.main(Main.java:23)

Users with the same issue

You are the first who have seen this exception.

Write tip

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