BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

ORM beanpopulator not compatible with Hibernate 5

Description

The ORM beanpopulator is not compatible with Hibernate 5. An example is line 307 of system/core/dynamic/BeanPopulator.cfc where we have code like this:

ORMGetSessionFactory().getAllClassMetadata()

That code throws this error in Hibernate 5

org.hibernate.SessionFactory.getAllClassMetadata is no longer supported

We need to detect the Hibernate version and replace it with a call to EntityManagerFactory.getMetamodel() instead.

https://stackoverflow.com/questions/40110913/hibernate-5-2-3-sessionfactory-getallclassmetadata-is-no-longer-supported

Gliffy Diagrams

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Sentry

Created November 11, 2017 at 7:39 PM
Updated February 9, 2018 at 9:40 PM
Resolved February 9, 2018 at 9:40 PM

Flag notifications