Re: problem with between criteria
Mike Perham <[email protected]>
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <OF4F1A0AA3.4BEC1EED-ON862571CE.0065EE6F-862571CE.006624EC@us.ibm.com> |
Carlos, that's odd. I just noticed that the Criteria APIs seem to have a pattern where they allow either raw columns or the field name and the field name was not working for me. Unfortunately I just moved this code over to use a raw SQL query so I can't get you any error messages. Thanks for the response anyhow. mike Carlos Chávez <[email protected]> wrote on 08/18/2006 12:13:25 PM: > Mike Perham escribió: > > > > > > I'm using > > > > crit.addBetween("invoke_date", new Timestamp(startDate.getTime()), > > new Timestamp(endDate.getTime())); > > > > The problem is that that between does not have a Field API like > > addFieldBetween so I need to use the raw column name. Is there any reason > > why this API is missing? > > > > mike > > > Hi mike. > I'm using addBetween without problems, I'm using the attribute in the > java class not the column name. > maybe you can post a more complete example about what are you trying to do. > > do you have any message of error ? > > Cheers. > Carlos Chávez. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >