getClassMetaData on ORMGetSessionFactory not found

Description

Taken from https://luceeserver.atlassian.net/browse/LDEV-2665

On any persistent entity:

Throws:

No matching Method/Function for org.hibernate.impl.SessionFactoryImpl.getClassMetadata(string) found (expression)

this breaks CBORM from ORMSupportUtil.cfc.

Stack trace:

Environment

None

Activity

Show:
Michael Offner
March 17, 2020, 8:32 AM
Michael Offner
March 17, 2020, 8:39 AM

most likely this change is causing it

Michael Offner
March 17, 2020, 9:12 AM

we removed 2 “synchronised” blocks because we switched to ConcurrentHashMap that should be thread safe, but i assume that when 2 ore more threads adding a new class at the same time, we still somehow loosing entries. I added again a “sync“ block, but not a general as before, we only sync for classes, so 2 different classes still can be stored at the same time.

Michael Offner
March 17, 2020, 9:16 AM

Samuel W. Knowlton
March 18, 2020, 9:19 PM

(comment deleted - false alarm)

Fixed

Assignee

Unassigned

Reporter

Samuel W. Knowlton

Priority

Blocker

Labels

Fix versions

Sprint

None

Affects versions

Configure