christian wrote:
You have to use the Oracle todate() function in the where clause of HQL if you work with strings. Why not have a java.util.Date object and bind it as a parameter?
Thanks for your help!
But could you elaborate the sentence "Why not have a java.util.Date object and bind it as a parameter?" My real situation is I need to query
from several tables and one of where clause including statements about
comparing date in Oracle DB and considering future of portability of code
we think it is better stick to Hibernate and not using any particular native db
functions. Any comments? or simple example?
Jun-Liang