You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/07/18 14:21:00 UTC

[jira] [Created] (CAY-2332) Property API: unable to use eq() and in() methods for toMany relationships

Nikita Timofeev created CAY-2332:
------------------------------------

             Summary: Property API: unable to use eq() and in() methods for toMany relationships
                 Key: CAY-2332
                 URL: https://issues.apache.org/jira/browse/CAY-2332
             Project: Cayenne
          Issue Type: Bug
            Reporter: Nikita Timofeev


Following code won't compile as {{eq()}} (as well as {{in()}}) method require {{List<Paintings>}} or other Property<> in this case, but everything else down the stack will correctly translate and execute this query and return correct result (I've checked this by simply allowing {{Object}} as argument in {{eq()}})
{code}                
    Painting painting = ObjectSelect.query(Painting.class).selectFirst(context);
    Artist artist = ObjectSelect.query(Artist.class)
            .where(Artist.PAINTING_ARRAY.eq(painting))
            .selectFirst(context);
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)