cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Filter array contents
Date Fri, 01 Nov 2013 13:26:41 GMT
Hello Andres,

You can create an Expression and then use filterObjects on it.  See the
bottom of:

http://cayenne.apache.org/docs/3.0/in-memory-evaluation.html

mrg



On Fri, Nov 1, 2013 at 6:37 AM, Andres L. <andreslb151@gmail.com> wrote:

> Hi,
> When I have a "one to many" relationship between two entities I have
> something like this:
>
> // obj1 is an instance of Entity1
> List<Entity2> listObj2 = obj1.getEntity2Array();
>
> Is there a way to filter values on listObj2 by an attribute value?
>
> Thank you.
>
> Andres
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message