Issue Type: Bug Bug
Affects Versions: 4.2.1
Assignee: Unassigned
Components: caching (L2)
Created: 15/May/13 11:11 AM
Description:

Recent commit to DefaultInitializeCollectionEventListener caused that even if a collection is found in cache sql query is executed. It works as expected when you have trace logging enabled.

if ( foundInCache && traceEnabled )

{ LOG.trace( "Collection initialized from cache" ); }

else {
if ( traceEnabled )

{ LOG.trace( "Collection not cached" ); }

// database hit
ce.getLoadedPersister().initialize( ce.getLoadedKey(), source );
}

should be

if ( foundInCache ) {
if(traceEnabled)

{ LOG.trace( "Collection initialized from cache" ); }

} else {

Project: Hibernate ORM
Labels: performance
Priority: Major Major
Reporter: Jiří Pejchal
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