db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koichi Nakagawa <nakag...@arksystems.co.jp>
Subject Re: OrderBy NullPointerException
Date Tue, 22 Apr 2003 09:40:19 GMT
Hello.


Check your project-schema.xml
You have to set the  "name" attribute for <database> element.
like the following..

<database name="yourdbname"> 



Tak Fujimoto
>hello,
>
>I had the same problem with torque-3.0.
>I believe the column 'PASSWD' is varchar.
>I think addAscendingOrderByColumn() only works for Integer key.
>I couldn't solve the problem so I gave up.
>
>Hope you'll find a workaround.
>
>> I experienced a mysterious behaviour with torque-gen-3.1-alpha1
>> When use OrderBy. Why?
>------
>>      [junit] java.lang.NullPointerException
>------
>> Test Program
>> 
>>             crit = new Criteria();
>>             crit.addAscendingOrderByColumn(TPassPeer.PASSWD);
>>             list = TPassPeer.doSelect(crit); 
>
>---------------------------------------------------------------------
>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