javax.persistence.PersistenceException: org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in JoinColumns.referencedColumnName

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 Thomas Risberg, 1 year ago
org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in JoinColumns.referencedColumnName
via Hibernate JIRA by Thomas Risberg, 1 year ago
org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in JoinColumns.referencedColumnName
via hibernate.org by Unknown author, 2 years ago
org.hibernate.AnnotationException: Unknown Id.generator: RNSEQUENZ
via Hibernate JIRA by Borys Burnayev, 1 year ago
org.hibernate.MappingException: Unable to find column with logical name: CTVUSERS_KEY in org.hibernate.mapping.Table(CTVUSERS) and its related supertables and secondary tables
via Hibernate JIRA by Borys Burnayev, 1 year ago
org.hibernate.MappingException: Unable to find column with logical name: CTVUSERS_KEY in org.hibernate.mapping.Table(CTVUSERS) and its related supertables and secondary tables
via Hibernate JIRA by Markus Junginger, 1 year ago
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on play.abc.test references an unknown entity: play.Xyz
javax.persistence.PersistenceException: org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in JoinColumns.referencedColumnName
at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:297)
at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:45)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:288)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1015)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:751)
at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
at undefined.Test.main(Test.java:17)

Users with the same issue

Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 4 months ago
5 more bugmates

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