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

Hibernate JIRA | Janario Oliveira | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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