cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Generating a matchExpression from Property<List<...>>
Date Mon, 02 Oct 2017 07:00:36 GMT

> On Sep 26, 2017, at 2:17 PM, Hugi Thordarson <hugi@karlmenn.is> wrote:
> 
> More of an issue for the dev-list but I've sometimes wondered if it might be sensible
to consider introducing subclasses of Property to handle properties of different types? For
examle, a ToManyRelationshipProperty could include a contains( destinationTypeObject ) method
which would create an Expression to check for a related object, while a StringProperty would
use the current contains( String ) implementation.

Yes, this is absolutely the way to go.

Andrus


Mime
View raw message