org.orm.PersistentException: Failed to create ThreadBaseSessionController

Visual-paradigm | Dr.Drane | 8 years 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

    Re:orm.PersistentException: Failed to create ThreadBaseSessionController

    Visual-paradigm | 8 years ago | Dr.Drane
    org.orm.PersistentException: Failed to create ThreadBaseSessionController
  2. 0

    Foreign key must have same number of columns (Object Relational Mapping forum at Coderanch)

    coderanch.com | 1 year ago
    org.hibernate.MappingException: Foreign key (FK250691B08CBB085E:STUDENT_ADDRESS [ADDRESS_ID])) must have same number of columns as the referenced primary key (STUDENT_ADDRESS [STUDENT_ID,ADDRESS_ID])
  3. 0

    Foreign key must have same number of columns

    Coderanch | 5 years ago | Arun Giridharan
    org.hibernate.MappingException: Foreign key (FK250691B08CBB085E:STUDENT_ADDRESS [ADDRESS_ID])) must have same number of columns as the referenced primary key (STUDENT_ADDRESS [STUDENT_ID,ADDRESS_ID])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Map an object that has composite id containing a mapping to object that itself has composite id?

    Coderanch | 5 years ago | Yaki Kumar
    org.hibernate.MappingException: Foreign key (FKC3DDB2345834AA5C:PROJECT_INFO [PROJECT_REF_NAME])) must have same number of columns as the referenced primary key (PROJECTS [PROJECT_NAME,START_DATE])
  6. 0

    Unable to instantiate custom type error in Hibernate mapping Enum mapping

    Stack Overflow | 4 years ago | Johnny
    org.hibernate.MappingException: Unable to instantiate custom type: org.hibernate.type.EnumType
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

    Foreign key (FKBB979BF4612C5064:address [street_idStreet])) must have same number of columns as the referenced primary key (street [idStreet,name])

    at org.hibernate.mapping.ForeignKey.alignColumns()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:90)
    2. org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
    3. org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1263)
    4. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1170)
    5. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
    5 frames
  3. org.orm.util
    ThreadBaseSessionController.<init>
    1. org.orm.util.ORMSessionFactory.<init>(ORMSessionFactory.java:17)
    2. org.orm.util.ThreadBaseSessionController.<init>(ThreadBaseSessionController.java:26)
    2 frames
  4. org.orm
    PersistentManager.<init>
    1. org.orm.PersistentManager.<init>(PersistentManager.java:90)
    1 frame
  5. be.tradelec.autopermit
    UntitledPersistentManager.instance
    1. be.tradelec.autopermit.UntitledPersistentManager.<init>(UntitledPersistentManager.java:30)
    2. be.tradelec.autopermit.UntitledPersistentManager.instance(UntitledPersistentManager.java:40)
    2 frames
  6. ormsamples
    CreateUntitledData.main
    1. ormsamples.CreateUntitledData.main(CreateUntitledData.java:145)
    1 frame