db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prescott R. Balch <presc...@prescottbalch.org>
Subject Re: addAscendingOrderBy problem
Date Mon, 16 Dec 2002 19:51:22 GMT


I'm not calling the BasePeer.  I'm calling the generated class.  The
stack trace says the NullPointerException is happening in the lower
level class (BasePeer) in createQueryString.

This code worked in Torque 2.0, by the way, and was not modified for 3.0.

> > prescott balch:
> > when I use a varchar column it gives me nullPointerException building
> > the query string in BasePeer.
> 
> Is there a reason you are using the Generic BasePeer instead of the Peer
> generated for that table?  Just for grins, does the problem still occur if
> you use the specific Peer? I.E., change:
> 
> List results = BasePeer.doSelect(criteria);
> 
> ...to...
> 
> List results = CustomerPeer.doSelect(criteria);
> 
> Chris
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-torque-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-torque-user-help@jakarta.apache.org>
> 

Mime
View raw message