As part of https://hibernate.atlassian.net/browse/HHH-15782, the generator hierarchy is updated. This lead to the deprecation of org.hibernate.mapping.KeyValue.createIdentifierGenerator. To retain backward compatibility, this method was kept in the code, calling the new method (createGenerator) and casting the result to IdentifierGenerator. That however does not work, as the new method returns an instance of type IdentityGenerator, which cannot be cast to IdentifierGenerator. This makes Liquibase Hibernate fail with the following error:
See related Liquibase ticket: liquibase/liquibase-hibernate#495 |