> -----Urspr�ngliche Nachricht----- > Von: Johannes Hamel [mailto:j.hamel@;gmx.net] > Gesendet: Mittwoch, 30. Oktober 2002 14:28 > An: [EMAIL PROTECTED] > Betreff: [newbie] criteria questions > > > Hi, > > I am playing around with Turbine and have a few questions: > > 1) Criteria > > >> > > Criteria criteria = new Criteria(); > criteria.add("Contact."+COLUMN,SEARCHSTRING); > > << > > works fine. > > >> > Criteria criteria = new Criteria(); > criteria.add("contact."+COLUMN,SEARCHSTRING,(Object)Criteria.LIKE);
You add a criteria by using the Peer class, like: c.add(MyTablePeer.MY_COLUMN, "string"); HTH. Marc -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
