cache not only by id, but by natural-id to.
-------------------------------------------
Key: HHH-1879
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1879
Project: Hibernate3
Type: Improvement
Components: core
Versions: 3.1.3
Reporter: Olexandr Demura
Priority: Minor
Attachments: cachetest.zip
it's will be good if Hibernate will cache object's not only by id, but by natural-id to.
i think HHH-1174 isn't a bug, but need's improvement.
for example, we have legacy DB structure, where Foo referenced to Bar by it's natural-id, see atachment.
on load Foo query Hibernate will produce unnecessary SQL to load two referenced Bars, which will be loaded in the first SQL for Foo by fetch anyway.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|