Bytecode enhanced classes don't implement ManagedEntity or ManagedComposite anymore?

Description

I'm just playing with Hibernate 5.1.1 as it might have solved our bytecode issues. One thing I immediately realize is that instrumented classes do not implement ManagedEntity or ManagedComposite anymore (which used to be the case in Hibernate 5.1.0).

Example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 @Entity @Polymorphism(type = PolymorphismType.EXPLICIT) @Inheritance(strategy = InheritanceType.JOINED) (...) public abstract class Base<BO extends BOBase<?>> extends DatabaseEntity<BO> implements IBase { (...) @Transient private transient EntityEntry $$_hibernate_entityEntryHolder; @Transient private transient ManagedEntity $$_hibernate_previousManagedEntity; @Transient private transient ManagedEntity $$_hibernate_nextManagedEntity; @Transient private transient PersistentAttributeInterceptor $$_hibernate_attributeInterceptor; @Transient private transient DirtyTracker $$_hibernate_tracker; @Transient private transient CollectionTracker $$_hibernate_collectionTracker; (...)

As I'm encountering null pointer issues during a session commit in Hibernate Search when bytecode enhancement is performed (no issues when bytecode is not instrumented) and extracting this to a test case is quite tricky, may I ask how serious the absence of the marker interfaces are? Maybe this already gives enough input for you to investigate the situation.

Environment

None

Status

Assignee

Luis Barreiro

Reporter

Niko Wittenbeck

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

5.1.1

Priority

Minor
Configure