You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2010/01/10 18:35:54 UTC

[jira] Commented: (CAY-1313) EJBQL: Implement support for relationship-ending paths in WHERE clause

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

Andrey Razumovsky commented on CAY-1313:
----------------------------------------

Hmm what do you mean? This test shows that relationship-ending path works in where clause

       ObjectContext context = createDataContext();
        
        Artist a = context.newObject(Artist.class);
        a.setArtistName("a");
        Painting p = context.newObject(Painting.class);
        p.setPaintingTitle("p");
        p.setToArtist(a);
        context.commitChanges();
        
        EJBQLQuery query = new EJBQLQuery(
            "select p from Painting p where p.toArtist=:a");
        query.setParameter("a", a);
        
        List<Painting> paintings = context.performQuery(query);
        assertEquals(1, paintings.size());
        assertSame(p, paintings.get(0));

> EJBQL: Implement support for relationship-ending paths in WHERE clause
> ----------------------------------------------------------------------
>
>                 Key: CAY-1313
>                 URL: https://issues.apache.org/jira/browse/CAY-1313
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0 beta 1
>            Reporter: Dave Dombrosky
>
> Same as CAY-1145 except this time implement it for the WHERE clause.

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