db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: How to strip off selected columns from a criteria object
Date Mon, 10 May 2010 20:02:02 GMT
Hi Dave,

wzhao6898@gmail.com schrieb:
> Thanks for your reply. But what I need to deal with is that:
> I have a criteria object, with joins, and where clauses and a list of
> columns to select, and I need to remove all the selected columns in the
> criteria, both selected column, and as columns, so I can use OMPeer class to
> select a list of OM objects;

What happens if you do criteria.getSelectColumns().clear() or 
criteria.getAsColumns().clear(), respectively? Would that help?
(This is what is basically done in criteria.clear(), among other things)

Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message