mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-20 01:55:02 +00:00
HHH-10993 : NPE when Lazy loading collection without transaction for bytecode enhanced entitie
This commit is contained in:
parent
41ac8c4f08
commit
2c553f3290
@ -323,12 +323,15 @@ public Object getLoadedValue(String propertyName) {
|
||||
|
||||
@Override
|
||||
public void overwriteLoadedStateCollectionValue(String propertyName, PersistentCollection collection) {
|
||||
// nothing to do if status is READ_ONLY
|
||||
if ( getStatus() != Status.READ_ONLY ) {
|
||||
assert propertyName != null;
|
||||
assert loadedState != null;
|
||||
|
||||
final int propertyIndex = ( (UniqueKeyLoadable) persister ).getPropertyIndex( propertyName );
|
||||
loadedState[propertyIndex] = collection;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean requiresDirtyCheck(Object entity) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user