org.hibernate.MappingException: Unable to find column with logical name: secondary_id in org.hibernate.mapping.Table(primary_table) and its related supertables and secondary tables

Stack Overflow | xing | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JPA/Hibernate @SecondaryTable @PrimaryKeyJoinCloumn reference a non-primary column in the primary table

    Stack Overflow | 5 months ago | xing
    org.hibernate.MappingException: Unable to find column with logical name: secondary_id in org.hibernate.mapping.Table(primary_table) and its related supertables and secondary tables

    Root Cause Analysis

    1. org.hibernate.MappingException

      Unable to find column with logical name: secondary_id in org.hibernate.mapping.Table(primary_table) and its related supertables and secondary tables

      at org.hibernate.cfg.Ejb3JoinColumn.checkReferencedColumnsType()
    2. Hibernate
      Ejb3JoinColumn.checkReferencedColumnsType
      1. org.hibernate.cfg.Ejb3JoinColumn.checkReferencedColumnsType(Ejb3JoinColumn.java:828)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      1 frame