just to confirm: criteria was changed to selectCriteria after it was 
discovered it didn't work, apologies - the real code:

>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 criteria = new Criteria();
>            criteria.add("CLIENT_ID", (Object)clientid, Criteria.EQUAL);
>             return ClientsPeer.doSelect(criteria);
>         }
>         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]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to