Re: Problems with Expression.match()

2009-06-11 Thread Andrus Adamchik
Here is one that I found: https://issues.apache.org/jira/browse/CAY-419 The description in the Jira is a bit vague, but the idea seems to be the same. Andrus On Jun 10, 2009, at 6:40 PM, Andrey Razumovsky wrote: #1. I can have a look. Please find JIRA or create a new one #2. You should c

Re: Problems with Expression.match()

2009-06-10 Thread Andrey Razumovsky
#1. I can have a look. Please find JIRA or create a new one #2. You should create table ID as ObjAttrbute and attach ExpressionFactory.noMatchExp("id", getId()) 2009/6/10 Øyvind Harboe > On Wed, Jun 10, 2009 at 5:26 PM, Andrus Adamchik > wrote: > > > > On Jun 5, 2009, at 11:43 AM, Øyvind Harbo

Re: Problems with Expression.match()

2009-06-10 Thread Øyvind Harboe
On Wed, Jun 10, 2009 at 5:26 PM, Andrus Adamchik wrote: > > On Jun 5, 2009, at 11:43 AM, Øyvind Harboe wrote: > >> 1. I can't use expression.match() because it will fail when the >> expression contains >> an array in the path. I.e. matchExp(role.members.user, user) here >> "members" >> will return

Re: Problems with Expression.match()

2009-06-10 Thread Andrus Adamchik
On Jun 5, 2009, at 11:43 AM, Øyvind Harboe wrote: 1. I can't use expression.match() because it will fail when the expression contains an array in the path. I.e. matchExp(role.members.user, user) here "members" will return a list, and this causes an exception for .match(), whereas it works

Problems with Expression.match()

2009-06-05 Thread Øyvind Harboe
I'm trying to figure out if a CayenneDataObject matches an expression and I run into various and sundry problems. This is the final solution I ended up with, but it's pretty ugly. List l=getDataContext().performQuery(new SelectQuery(Treatment.class,