You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by kidong <Ki...@public.uni-hamburg.de> on 2001/04/13 03:20:22 UTC

problem with ordering by a column with criteria

hello,

i would like to order the table results by a column with criteria,
like this:

Criteria crit = new Criteria();
crit.add( BaseIssuePeer.REPORTEDBY, data.getParameters().getString("reportedby", "") );
crit.addOrderByColumn( BaseIssuePeer.REPORTEDBY );
Vector v = BaseIssuePeer.doSelect( crit, GetDBConnection.getDBConnection() );

but it results to nullpointer. does anybody another idea?
i would appreciate any helpful idea.

thanks,

kidong

Re: problem with ordering by a column with criteria

Posted by John McNally <jm...@collab.net>.
I hope that BaseIssuePeer is the originally empty class that extends
BaseBaseIssuePeer.  You should not make references to the generated
classes.  Not that that is the problem, though.

You need to submit a stacktrace if you would like to increase your
chances at getting some help.

And do not send html email to this list.

john mcnally

> kidong wrote:
> 
> hello,
> 
> i would like to order the table results by a column with criteria,
> like this:
> 
> Criteria crit = new Criteria();
> crit.add( BaseIssuePeer.REPORTEDBY,
> data.getParameters().getString("reportedby", "") );
> crit.addOrderByColumn( BaseIssuePeer.REPORTEDBY );
> Vector v = BaseIssuePeer.doSelect( crit,
> GetDBConnection.getDBConnection() );
> 
> but it results to nullpointer. does anybody another idea?
> i would appreciate any helpful idea.
> 
> thanks,
> 
> kidong

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