cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAY-1368) Left Join and Prefetches do not work together
Date Mon, 18 Jan 2010 11:54:54 GMT
Left Join and Prefetches do not work together
---------------------------------------------

                 Key: CAY-1368
                 URL: https://issues.apache.org/jira/browse/CAY-1368
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.0RC1, 3.0RC2, 3.1M1
            Reporter: Andrey Razumovsky
            Priority: Critical


Test case is very very simple:

  SelectQuery query = new SelectQuery(Artist.class, 
            ExpressionFactory.matchExp("paintingArray+.toGallery", null));
  query.addPrefetch("groupArray");
        createDataContext().performQuery(query);

===> results in:
org.apache.cayenne.exp.ExpressionException: [v.3.1-SNAPSHOT ${project.build.date} ${project.build.time}]
Can't resolve path component: [Artist.paintingArray+].
	at org.apache.cayenne.map.Entity$PathIterator.next(Entity.java:417)
	at org.apache.cayenne.map.Entity$PathIterator.next(Entity.java:1)
	at org.apache.cayenne.map.ObjEntity$DBPathConverter.toDbPath(ObjEntity.java:1102)
	at org.apache.cayenne.map.ObjEntity$DBPathConverter.transform(ObjEntity.java:1146)
	at org.apache.cayenne.exp.Expression.transformExpression(Expression.java:537)
	at org.apache.cayenne.exp.Expression.transformExpression(Expression.java:513)
	at org.apache.cayenne.exp.Expression.transform(Expression.java:486)
	at org.apache.cayenne.map.ObjEntity.translateToRelatedEntity(ObjEntity.java:1090)
	at org.apache.cayenne.query.SelectQueryPrefetchRouterAction.startDisjointPrefetch(SelectQueryPrefetchRouterAction.java:104)



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