Hello,

Does Cayenne supports in-memory filtering ? (like EOF does, I mean without 
takinbg car if it’s sql ou java)

As explained is the doc, I wrote without any effort :

Expression e = Artist.NAME.in<http://Artist.NAME.in>("John", "Bob");


List<Artist> filtered = e.filterObjects(unfiltered);

Then, I made a new method and change the expression but without success :

Expression e = ExpressionFactory.likeExp("customedName", "Bob"); // where 
customedName() is a method cloning name()


List<Artist> filtered = e.filterObjects(unfiltered);

But an error raised :

org.apache.cayenne.exp.ExpressionException: [v.4.0 Aug 06 2018 12:11:43] Error 
evaluating expression ‘customedName like "Bob"'

Any idea ?

Jérémy

Reply via email to