Query for java.util.Date

2004-01-04 Thread Gunnar Hilling
Hello, How can I do a PBQuery for a field of Type java.sql.Date in the DB, java.util.Date in Java. criteria.add(date, new Date()); won't work (see also stack trace) Thanks a lot, -Gunnar [org.apache.ojb.broker.accesslayer.JdbcAccessImpl] ERROR: SQLException during the execution of the query

Re: Query for java.util.Date

2004-01-04 Thread Gunnar Hilling
Ok, after some reflection I came to the conclusion that using java.sql.Timestamp is the solution. -Gunnar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]