org.hibernate.AnnotationException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web296

  • via Stack Overflow by Anil Bharadia
    , 10 months ago
    @OneToOne or @ManyToOne on com.example.jobcard.domain.JobCard.location references an unknown entity: com.example.geographics.domain.Address
  • via Hibernate JIRA by Adam T, 1 year ago
    @OneToOne or @ManyToOne on test.ZImpl.b references an unknown entity: test.BImpl
  • via Stack Overflow by user3867107
    , 1 year ago
    @OneToOne or @ManyToOne on com.gontuseries.hibernate.StudentDetail.student_id references an unknown entity: int
  • Stack trace

    • 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.cfg.Configuration.buildSessionFactory(Configuration.java:1846) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    4 times, 1 year ago
    Unknown user
    Once, 1 year ago
    51 more bugmates