You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2009/07/16 16:10:15 UTC
[jira] Commented: (CAY-1250) Prefetching doesn't work with
prefetched subentity
[ https://issues.apache.org/jira/browse/CAY-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731950#action_12731950 ]
Andrus Adamchik commented on CAY-1250:
--------------------------------------
Just committed a somewhat related fix of CAY-132.. Chances are it won't fix this issue, but in general Cayenne somewhat relaxed its algorithm for making an eager fetch decision in case of inheritance (specifically if a relationship is to superclass that has no inheritance qualifier). If you are inclined to try it from an integration build, follow this link:
http://hudson.zones.apache.org/hudson/view/Cayenne/job/Cayenne-trunk/lastBuild/org.apache.cayenne$cayenne-server/
and wait till build #426 (or newer) is posted, or build Cayenne yourself from SVN.
> Prefetching doesn't work with prefetched subentity
> --------------------------------------------------
>
> Key: CAY-1250
> URL: https://issues.apache.org/jira/browse/CAY-1250
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 2.0 branch, 3.0M6
> Reporter: Donald Vrakking
>
> Two entities; A->B in a n:1 relation, B has a subentity. When prefetching B, the toOneFault on A isn't updated with the prefetched B. When B is accessed from A, an additional query is still executed to get B.
> It makes no difference if A has subentities or not.
> This occurs in 2.0.4 with a disjoint and joint prefetch. With 3.0M6 it only occurs when using a disjoint prefetch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.