In general the add methods take a comparison clause as the last argument.  Criteria
contains several static Strings that can be used for this argument so

criteria.add(SomePeer.SOME_COLUMN, (Object)"beginswith%", Criteria.LIKE);


John McNally

Leandro Rodrigo Saad Cruz wrote:
> 
> how can I make like clauses using criteria ??
> 
> --
> Leandro Rodrigo Saad Cruz
> 
> InterBusiness Tecnolgia e Servicos
> http://www.ibnetwork.com.br
> telefone 4191-3638
> Sao Paulo - SP - Brasil
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to