[jira] Created: (CAY-1115) Prefetch on SelectQueries doesn't resolve ToOneFaults

From: Robert Wruck (JIRA) ("Robert)
Date: Sun Oct 05 2008 - 16:52:11 EDT

  • Next message: Andrey Razumovsky (JIRA): "[jira] Commented: (CAY-1080) Support for copy/paste of entities/attributes/relationships"

    Prefetch on SelectQueries doesn't resolve ToOneFaults
    -----------------------------------------------------

                     Key: CAY-1115
                     URL: https://issues.apache.org/cayenne/browse/CAY-1115
                 Project: Cayenne
              Issue Type: Bug
              Components: Cayenne Core Library
        Affects Versions: 1.2 [STABLE]
             Environment: 1.2.4 on Linux
                Reporter: Robert Wruck
                Assignee: Andrus Adamchik

    final SelectQuery q = new SelectQuery(MyObject.class);
    q.addPrefetch("myRelObject");
    final List l = dataContext.performQuery(q);

    For each element in the returned List, myRelObject is a ToOneFault that will be resolved by a separate query.
    This result is not affected by setSemantics on the prefetch (JOINT, DISJOINT behave just the same way).
    Expected result: myRelObject is filled with the prefetched entity object.

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sun Oct 05 2008 - 16:52:36 EDT