cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikita Timofeev <>
Subject Re: Generating a matchExpression from Property<List<...>>
Date Tue, 26 Sep 2017 11:08:00 GMT

No there isn't any shortcut for now, use
ExpressionFactory.matchExpression( String, Object ), or you can try
generic erasure tricks, but that's ugly.
I've created issue for that case sometime ago [1] but not sure how to
deal with it.


On Tue, Sep 26, 2017 at 1:04 PM, Hugi Thordarson <> wrote:
> Hi all,
> is there a shortcut method from Property to check for if a to-many relationship contains
an object? Or should I just use ExpressionFactory.matchExpression( String, Object ) for now?
> I'm upgrading my templates to use field based data objects, but the new templates use
Property<List<E>> for to-many relationships whereas my old templates just used
Property<E>. The new signature makes sense, but it also means that I can no longer use
Property.eq( E ) for this.
> Cheers,
> - hugi

Best regards,
Nikita Timofeev

View raw message