org.hibernate.AnnotationException: Unable to create unique key constraint ("ORDER") on table TestEntity: database column 'ORDER' 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)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • WildFly8 JPA2.1 and Enumerated values
    via Stack Overflow by drodil
    ,
  • JPA error: expecting IdClass mapping
    via Stack Overflow by Heiko Wiesner
    ,
  • JPA ManyToOne in MappedSupperClass
    via by Unknown author,
    • org.hibernate.AnnotationException: Unable to create unique key constraint ("ORDER") on table TestEntity: database column 'ORDER' 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) at org.hibernate.cfg.Configuration.buildUniqueKeyFromColumnNames(Configuration.java:1684) at org.hibernate.cfg.Configuration.buildUniqueKeyFromColumnNames(Configuration.java:1616) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1452) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)

    Users with the same issue

    Unknown visitor1 times, last one,
    nasimk
    nasimk1 times, last one,
    Unknown visitor1 times, last one,
    tjago
    tjago4 times, last one,
    Unknown visitor1 times, last one,
    43 more bugmates