Skip to content

Commit 0cba44d

Browse files
committed
[#1891] Fix getReference issue with BE
ORM 6.5 doesn't create a proxy factory unless is needed. When we upgraded we missed a small change to the flow because we didn't have tests for it (`getReference` with Bytecode Enhancements enabled).
1 parent 4650538 commit 0cba44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/event/impl/DefaultReactiveLoadEventListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ else if ( persister.getRepresentationStrategy().getProxyFactory() != null ) {
361361
// we have a HibernateProxy factory, this case is more complicated
362362
return loadWithProxyFactory( event, persister, keyToLoad );
363363
}
364-
else if ( !persister.hasSubclasses() ) {
364+
else if ( persister.hasSubclasses() ) {
365365
// the entity class has subclasses and there is no HibernateProxy factory
366366
return load( event, persister, keyToLoad, options );
367367
}

0 commit comments

Comments
 (0)