Re: multiple criteria on the same field
Thomas Vandahl <[email protected]> Sun, 10 May 2009 14:36:37 +0200
| Newsgroups | gmane.comp.jakarta.turbine.torque.user |
|---|---|
| Message-ID | <[email protected]> |
Ivano Luberti wrote: > Can someone suggest the best practice to do this with Torque ? I suggest the following: ---8<--- Criteria criteria = new Criteria(); criteria.add(IscrizioniSocioPeer.STARTTIME, (Date) (formUser.getDataIscrizioneInizio()), Criteria.GREATER_EQUAL); criteria.and(IscrizioniSocioPeer.STARTTIME, (Date) (formUser.getDataIscrizioneFine()), Criteria.LESS_EQUAL); ---8<--- What were you planning to achieve with dataIscrizioneFine.setIgnoreCase(true)? The value is a Date object. Bye, Thomas.