Yeah I can use any sql functions to get the output.
But I want it to be platform independent. That is if tomorrow I think of switching from Oracle to MS Sql it shouldn't give me any problem. Otherwise I would have to go and change each sql.
The query generated is simple
Select a.* from tblmst_agent a where a.createdate=?
I don't know but I think that it substitutes the long format date with the "?"
The query which needs to be generated is something like this
select a.* from tblmst_agent where to_char(a.createdate, 'yyyy-mm-dd') = '2001-12-31'
I think this is the right one.
regards
prasad chandrasekaran
david wrote:
You can use what ever functions you would normally use in your sql where clause in HQL if appropriate. You can enable the SQL output by setting the showsql property to true.