You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Andrus Adamchik <an...@objectstyle.org> on 2017/10/02 07:00:36 UTC

Re: Generating a matchExpression from Property>

> On Sep 26, 2017, at 2:17 PM, Hugi Thordarson <hu...@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