thanks Dan,
was the first thing I did.
cheers
Emile
At 12:30 PM 11/12/01 -0800, you wrote:
>I just do
>
>criteria.add("CLIENT_ID", clientid);
>
>for similar situations and it works for me...
>
>
>On Mon, 12 November 2001, Emile Kok wrote:
>
> >
> > does anyone have any idea why this code does not work? the parameter is
> > derived from the CLIENT_ID on a select and is correct.
> >
> > private Vector getClient(String clientid)
> > {
> > try
> > {
> > Criteria selectCriteria = new Criteria();
> > criteria.add("CLIENT_ID", (Object)clientid, Criteria.EQUAL);
> > return ClientsPeer.doSelect(selectCriteria);
> > }
> > catch (Exception e)
> > {
> > Log.debug("getClients(): " + e);
> > return null;
> > }
> > }
> >
> > TABLE :
> > <table name="CLIENTS" idMethod="autoincrement">
> > <column name="CLIENT_ID" required="true" autoIncrement="true"
> > primaryKey="true" type="INTEGER"/>
> > ...
> >
> > I've tried a number of different types to pass in to the criteria.add.
> >
> > thanks
> > Emile
> >
> >
> >
> > --
> > To unsubscribe,
> e-mail: <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
></dan>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>