From: <leg...@at...> - 2003-07-16 18:29:43
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-202 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-202 Summary: Fetched collections are not cached Type: Improvement Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.0 final Assignee: Reporter: Peter Fassev Created: Wed, 16 Jul 2003 1:29 PM Updated: Wed, 16 Jul 2003 1:29 PM Description: If a collection is fetched together with an owner class using a query with the "left outher join fetch" construct, then the created collection is not added to the cache. A tried a simple improvement and changed the PersistentCollectionType.getCollection() to add the collection to the cache: .... PersistentCollection collection = session.endLoafingCollection(persister, id); if (collection != null) { // this is the patch... persister.cache(id, collection, session); return collection.getCachedValue(); } ... I am not shure if this is the right place for the patch and if this patch is enough, so a am ascing for improvement. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |