java.lang.ClassCastException: org.hibernate.metamodel.relational.Column cannot be cast to org.hibernate.mapping.Column

Hibernate JIRA | Janario Oliveira | 4 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.

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.hibernate.metamodel.relational.Column cannot be cast to org.hibernate.mapping.Column

      at org.hibernate.dialect.unique.DefaultUniqueDelegate.uniqueConstraintSql()
    2. Hibernate
      DefaultUniqueDelegate.uniqueConstraintSql
      1. org.hibernate.dialect.unique.DefaultUniqueDelegate.uniqueConstraintSql(DefaultUniqueDelegate.java:137)
      1 frame