Hey guys, Steve said I should start a discussion about the possible solution for HHH-10162 <https://hibernate.atlassian.net/browse/HHH-10162> so here we go.
While debugging the issue, I found out that the proxy is created at DefaultLoadEventListener.createProxyIfNecessary() where it IMO should consult the 2L cache first by calling existing = loadFromSecondLevelCache( event, persister, keyToLoad );. The fix looks easy, but I am not sure of the implications. Obviously this will affect performance a little since it has to consult the L2 cache now. I tried to start a discussion in the Dev room, but so far only Andrea, Vlad and Chris have commented this. Has anyone a different idea for implementing this? -- Mit freundlichen Grüßen, ------------------------------------------------------------------------ *Christian Beikov* _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev