I need to create an HQL where clause which has the form:
where tbl1.DateTimeField + tbl2.TimeSpanField >= :someDateTimeParameter
The DateTimeField is of type DateTime
The TimeSpanField is of type BigInt (is this the best option?)
The someDateTimeParameter is a DateTime
writing the HQL query as above translates almost exactly into TSQL, however this is obviously invalid.
- What do I need to do to get this where clause to work? Is there some HQL trick I can emlpoy?
- If not, how do I write the HQL to use some TSQL function to do the comparison for me?
- What TSQL would I need?
Thanks!
Andrew