SessionImpl does not load EntityPersister by entity name

Description

We are using a proxy for each entity (bytebuddy), also we created a Tuplizer and an Instantiator for Hibernate.

This works for loading an entity from a DB, for creating a new entity and for modifying an entity but not for deleting. Delete calls SessionImpl.contains(object). The method is trying to load an EntityPersister (Line 2025 [see also 2058]) but the method without the entityName parameter (Line 1982) tries to load the persister by class-name instead of the entity-name.

Bugfix is on line "getSessionFactory().getMetamodel().entityPersister"

Current:

SessionImpl.java

Fixed:

SessionImpl.java

Environment

Spring-data-jpa: 1.11.1
Spring: 4.3.8
Hibernate: 5.2.10

Assignee

Gail Badner

Reporter

Florian Bien

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Blocker
Configure