cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Vrakking (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-1250) Prefetching doesn't work with prefetched subentity
Date Thu, 16 Jul 2009 19:56:14 GMT

    [ https://issues.apache.org/jira/browse/CAY-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732121#action_12732121
] 

Donald Vrakking commented on CAY-1250:
--------------------------------------

I tried the integration build (#426). It throws an exception when accessing a property on
the prefetched object.

org.apache.cayenne.FaultFailureException: [v.3.0-SNAPSHOT Jul 16 2009 14:45:29] Error resolving
fault for ObjectId: <ObjectId:SppOrganisation, ORGANISATION_ID=295814> and state (hollow).
Possible cause - matching row is missing from the database.
	at org.apache.cayenne.BaseContext.prepareForAccess(BaseContext.java:169)
	at org.apache.cayenne.CayenneDataObject.readProperty(CayenneDataObject.java:207)
	at com.traserv.persist.productsupplier.meta._SppOrganisation.getName(_SppOrganisation.java:49)
	at com.traserv.model.productsupplier.SupplierTest.test(SupplierTest.java:32)


> 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.


Mime
View raw message