org.hibernate.AnnotationException: Referenced property not a (One|Many)ToOne: com.oriental.comet.db2.company.entity.Company.warehouseRules in mappedBy of com.oriental.comet.db2.company.entity.WarehouseRules.company:org.hibernate.AnnotationException:Referenced property not a (One|Many)ToOne: com.oriental.comet.db2.company.entity.Company.warehouseRules in mappedBy of com.oriental.comet.db2.company.entity.WarehouseRules.company

  1. 0

    org.hibernate.AnnotationException: Referenced property not a (One|Many)ToOne:

    Stack Overflow | 2 months ago | ThatGuyYouKnow
    org.hibernate.AnnotationException: Referenced property not a (One|Many)ToOne: com.oriental.comet.db2.company.entity.Company.warehouseRules in mappedBy of com.oriental.comet.db2.company.entity.WarehouseRules.company:org.hibernate.AnnotationException:Referenced property not a (One|Many)ToOne: com.oriental.comet.db2.company.entity.Company.warehouseRules in mappedBy of com.oriental.comet.db2.company.entity.WarehouseRules.company
  2. 0

    WildFly8 JPA2.1 and Enumerated values

    Stack Overflow | 3 years ago | drodil
    org.hibernate.AnnotationException: Attribute [com.project.ejb.model.Zoo.animals] was annotated as enumerated, but its java type is not an enum [java.lang.String]
  3. 0

    Hibernate JPA how to convert list-index hbm attribute to annotations?

    Stack Overflow | 2 years ago | Moussi
    org.hibernate.AnnotationException: Unable to create unique key constraint (TYPE_COMPARUTION_COURRIER_TYPES_COURRIERS_IDX) on table TYPES_COMPARUTIONS2TYPES_COURRIERS: database column 'TYPE_COMPARUTION_COURRIER_TYPES_COURRIERS_IDX' not found. Make sure that you use the correct column name which depends on the naming strategy in use (it may not be the same as the property name in the entity, especially for relational types)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    hibernate error when using single table inheritance

    Stack Overflow | 2 years ago | P.P├ęter
    org.hibernate.AnnotationException: Foreign key circularity dependency involving the following tables:
  6. 0

    JPA error: expecting IdClass mapping

    Stack Overflow | 2 years ago | Heiko Wiesner
    org.hibernate.AnnotationException: Unable to define @Version on an embedded class: de.itwiesner.hannymede.common.valueobjects.VoBusinessObject

  1. tjago 4 times, last 8 months ago
  2. davidvanlaatum 2 times, last 2 months ago
  3. r1chjames 1 times, last 6 months ago
  4. Kawada 108 times, last 7 months ago
43 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.AnnotationException

    Referenced property not a (One|Many)ToOne: com.oriental.comet.db2.company.entity.Company.warehouseRules in mappedBy of com.oriental.comet.db2.company.entity.WarehouseRules.company:org.hibernate.AnnotationException:Referenced property not a (One|Many)ToOne: com.oriental.comet.db2.company.entity.Company.warehouseRules in mappedBy of com.oriental.comet.db2.company.entity.WarehouseRules.company

    at org.hibernate.cfg.OneToOneSecondPass.doSecondPass()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:248)
    2. org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1697)
    3. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1426)
    4. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)
    4 frames
  3. org.hibernate.jpa
    EntityManagerFactoryBuilderImpl$4.perform
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
    1 frame