org.hibernate.MappingException: Unable to find column with logical name: change_log.changed_address_id

Hibernate JIRA | Jeremy Haile | 1 decade ago
  1. 0
  2. 0
  3. 0

    Upgrade Spring (2.5.5 to 4.0.2) and hibernate (3.2.6 to 3.6.9) version

    Stack Overflow | 2 years ago | sanitg
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring/test-persistenceContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Foreign key (FKEC0DF9EF331D3E16:CLIENT_ACCOUNT_SERVICE [ACCT_ID,ACCT_PTY_STA_TYP,ACCT_ROLE_TYP,ACCT_STA_TYP,PTY_ID,PTY_ROLE_TYP,PTY_STA_TYP])) must have same number of columns as the referenced primary key (ACCOUNT_PARTY [ACCT_ID,ACCT_PTY_STA_TYP,ACCT_ROLE_TYP,PTY_ID,PTY_ROLE_TYP,PTY_STA_TYP])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.hibernate.MappingException: Unable to find column with logical name

    Stack Overflow | 5 years ago | MahmoudS
    org.hibernate.MappingException: Unable to find column with logical name: medical_company_id in org.hibernate.mapping.Table(medical_company) and its related supertables and secondary tables
  6. 0

    Association references unmapped class hibernate

    Stack Overflow | 4 years ago | mahesh
    org.hibernate.MappingException: Association references unmapped class: com.infibeam.customerservice.dbObjects.AddressDO

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.MappingException

      Unable to find column with logical name: change_log.changed_address_id

      at org.hibernate.cfg.Mappings.getPhysicalColumnName()
    2. Hibernate
      Configuration.buildMappings
      1. org.hibernate.cfg.Mappings.getPhysicalColumnName(Mappings.java:495)
      2. org.hibernate.cfg.IndexSecondPass.doSecondPass(IndexSecondPass.java:28)
      3. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1031)
      4. org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:227)
      5. org.hibernate.cfg.Configuration.buildMappings(Configuration.java:996)
      5 frames