javax.persistence.PersistenceException: [PersistenceUnit: postareas] Unable to configure 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 Karsten Wutzke, 1 year ago
[PersistenceUnit: postareas] Unable to configure EntityManagerFactory
via Hibernate JIRA by Karsten Wutzke, 1 year ago
[PersistenceUnit: postareas] Unable to configure EntityManagerFactory
via Stack Overflow by placplacboom
, 2 years ago
Unable to configure EntityManagerFactory
via Stack Overflow by Kaleb Pederson
, 2 years ago
Unable to configure EntityManagerFactory
via Coderanch by Karsten Wutzke, 1 year ago
[PersistenceUnit: geoareas] Unable to configure EntityManagerFactory
via Coderanch by Leonardo Terrao, 1 year ago
[PersistenceUnit: JPA] Unable to configure EntityManagerFactory
org.hibernate.AnnotationException: Mixing insertable and non insertable columns in a property is not allowed: tld.postareas.model.PostAreacity
at org.hibernate.cfg.Ejb3Column.checkPropertyConsistency(Ejb3Column.java:563)
at org.hibernate.cfg.AnnotationBinder.bindManyToOne(AnnotationBinder.java:2703)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1600)
at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:796)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:707)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3977)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3931)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1368)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1477)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:193)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1096)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:278)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:362)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
at tld.postareas.Main.main(Main.java:38)

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.