cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Lindesay <>
Subject Re: lazy loading (slightly OT but still pretty important)
Date Mon, 02 Apr 2012 08:52:59 GMT
Hi Sheldon;

You can just create an EJBQLQuery that extracts those specific columns 
(expressed as entity attributes' names) and then run the query and 
you'll pull back that data.  A crude example of such a query;

"SELECT o." + Foo.CODE_PROPERTY+" FROM "+Foo.class.getSimpleName()+" o 
WHERE o."......

Is that what you mean?


On 2/04/12 8:18 PM, Sheldon wrote:
> What I mean is,
> if I have a Table with n columns (col1, col2, col3 ...) and want load only
> the value of col1 and col3 (without loading col2 and the others).
> Is this example possible?
> Sheldon
> --
> View this message in context:
> Sent from the Cayenne - User mailing list archive at

Andrew Lindesay

View raw message