Possible fixes for 3.6.9 that may work for other versions as well:

EntityEntry @ line 255, replace

public Object getLoadedValue(String propertyName) { int propertyIndex = ( (UniqueKeyLoadable) persister ).getPropertyIndex(propertyName); return loadedState[propertyIndex]; }

by

public Object getLoadedValue(String propertyName) {
int propertyIndex = ( (UniqueKeyLoadable) persister ).getPropertyIndex(propertyName);
if (loadedState == null) { return null; }
return loadedState[propertyIndex];
}

public Object getLoadedValue(Object entity, String propertyName) {
int propertyIndex = ( (UniqueKeyLoadable) persister ).getPropertyIndex(propertyName);
if (loadedState == null) { loadedState = getPersister().getPropertyValues( entity, entityMode ); }
return loadedState[propertyIndex];
}

To make this work also replace line 233 in org.hibernate.engine.Cascade with:

loadedValue = entry.getLoadedValue( parent, propertyName );

Using the test case by Patras Vlad this fix works. I also attached the files to this issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira