liquibase-hibernate: Integrator not compatible with Hibernate ORM 5.0.1

The current Liquibase Hibernate Extension (liquibase-hibernate4) is not compatible with Hibernate ORM 5.0.1.

Here is the error report: AbstractMethodError in SessionFactoryImpl

Steve Ebersole said:

That line is attempting to call Integrators. I would assume you have Integrators not intended for use with Hibernate 5.0. That contract did change in 5.0 as discussed in the migration guide.

Also mentioned in Liquibase + Hibernate ORM 5.0

Here is Hibernate 5.0 Migration Guide

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 25
  • Comments: 85 (34 by maintainers)

Most upvoted comments

I’m nearly done with the hibernate 5 support. Still getting the hibernate:classic url to work passing in a package name. It will depend on 3.5.2 which I’m trying to get out this week, then I can post a RC for the liquibase-hibernate extension.

I pushed support for Hibernate 5.2 to the master branch in liquibase-hibernate Hibernate 4 support has been moved to a new hibernate4 branch.

The pre-existing tests are all passing, but I could definitely use some help testing in real environments.

If you don’t want to build the liquibase-hibernate code, you can pull the jar from the buildserver at https://liquibase.jira.com/builds/browse/CONTRIB-HBNSNAP3

It has now been released as liquibase-hibernate5 3.6

I started a lab repository based on liquibase-hibernate to support Hibernate 5.x. https://github.com/jean-merelis/liquibase-hibernate5

Bottomline: 1- A possible liquibase fix but not related to liquibase-hibernate 2- Fixed 3- An hibernate issue

I validate that everything is working perfectly. You can release whenever you want.

Good to hear testing is going well so far. Thanks again for the help! Let me know if there is anything you need me to help with

Sorry, looking through the hibernate issues has been my “next project” for far too long. Part of the problem is that I’ve not used hibernate in a while and so need to get up to speed on what the problems are. If actual hibernate users are able to send a pull request and/or comment on what should be changed that would be a huge help.