db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Joelly <chris.joe...@unycom.com>
Subject Re: AW: Torque, building Criteria for query ...
Date Tue, 02 Mar 2004 09:18:49 GMT
Hello!

yep. my problem was the surrounding {} ...

thx, Chris

Am Tue, Mar 02, 2004 at 09:37:41AM +0100, Kostyantyn Shchekotykhin meinte:
> with this method all is ok, the problem was that Chris wanted to add 
> dicertly a List with Records and not Integers. When BasePeer composes 
> query each Criterion value is converted to String. Village's 
> Record.toString() is implemented so that each Record field is surrounded 
> with {}. E.g. if it contains an Integer it will be something like "WHERE 
> ID = {1000}".
> 
> Sperlich, Tino wrote:
> >
> >you have probably fixed the problem; but just for my info:
> >in the API of criteria there is a method like this
> >
> >public Criteria addNotIn(java.lang.String column,
> >                         java.util.List values)
> >
> >is there something wrong with this or would that do the job, 
> >too?

-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

Du warst noch nie 45 Minuten am Stück in einem Raum mit 30
pubertierenden Siebklässlern, die partout alles, was Du sagst,
zweideutig interpretieren wollen, gell?
		-- Oliver Gassner


---------------------------------------------------------------------
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