cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2332) Property API: unable to use eq() and in() methods for toMany relationships
Date Tue, 18 Jul 2017 14:21:00 GMT
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)

Mime
View raw message