cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Quick query question
Date Thu, 02 Apr 2009 17:01:36 GMT
Did you map your primary key as a Java attribute?  If so, just include it.


On Thu, Apr 2, 2009 at 12:53 PM, Dave Lamy <davelamy@gmail.com> wrote:
> I am composing a SelectQuery and want to include an expression to narrow my
> results based upon the primary key (just an int ID) as well as other
> criteria.  I am using the ExpressionFactory to generate the Expressions..
> specifically I have
>
> Expression expr = ExpressionFactory.inExp(<pathToId?>, idCollection);
>
> Question is:  How do I represent the path to the primary key in an
> expression string like this?
>
> Thanks--
> Dave
>

Mime
View raw message