[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6680) 2L caching appears to ignore collections
Ben Hood (JIRA)
noreply at atlassian.com
Thu Sep 29 10:24:28 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43838#comment-43838 ]
Ben Hood commented on HHH-6680:
-------------------------------
The issue appears to be that the update timestamp is incorrectly set by calling preinvalidate/1 instead of invalidate/1 on UpdateTimestampsCache, as indicated in this patch:
https://github.com/0x6e6562/hibernate-core/commit/615aa049e7a557d4a8506a09eb1d2be38714b78f
I don't know what the knock on effect of this change is though.
> 2L caching appears to ignore collections
> ----------------------------------------
>
> Key: HHH-6680
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6680
> Project: Hibernate Core
> Issue Type: Bug
> Components: caching (L2)
> Affects Versions: 3.6.7
> Environment: 3.6.7 on Derby 10.8.1.2 and Oracle 11g
> Reporter: Ben Hood
>
> I have a scenario where a (read-mostly) mapped collection is eagerly loaded with the parent object, but when I retrieve the graph, the 2L cache appears to get ignored and the data is hydrated from the DB.
> I have created a test case to reproduce this issue as a runnable Maven project on Github : https://github.com/0x6e6562/hibernate_2L
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list