org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.example.jobcard.domain.JobCard.location references an unknown entity: com.example.geographics.domain.Address

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 Anil Bharadia
, 1 year ago
@OneToOne or @ManyToOne on com.example.jobcard.domain.JobCard.location references an unknown entity: com.example.geographics.domain.Address
via Stack Overflow by rajeev pani..
, 2 years ago
@OneToOne or @ManyToOne on com.beans.Employee.dept references an unknown entity: com.beans.Dept
via Stack Overflow by user3867107
, 2 years ago
@OneToOne or @ManyToOne on com.gontuseries.hibernate.StudentDetail.student_id references an unknown entity: int
via Stack Overflow by SkiiNet
, 5 months ago
@OneToOne or @ManyToOne on com.revature.bank.POJO.BankAccount.customer references an unknown entity: com.revature.bank.POJO.Customer
via Stack Overflow by yousafsajjad
, 2 years ago
@OneToOne or @ManyToOne on com.example.data.model.ClientRelationship.grantee references an unknown entity: com.example.data.model.Client
via Coderanch by Christopher Rygaard, 1 year ago
@OneToOne or @ManyToOne on com.cummingsaerospace.sft.hibernateexamples.embeddedcontainer.Contained._embedded references an unknown entity: MyEmbedded
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.example.jobcard.domain.JobCard.location references an unknown entity: com.example.geographics.domain.Address
at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:109)
at org.hibernate.cfg.Configuration.processEndOfQueue(Configuration.java:1598)
at org.hibernate.cfg.Configuration.processFkSecondPassInOrder(Configuration.java:1521)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1422)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)

Users with the same issue

2 times, 1 week ago
12 times, 2 months ago
3 times, 5 months ago
11 times, 8 months ago
4 times, 8 months ago

Write tip

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