Microsoft
Software
Hardware
Network
Question : Hibernate HQL question
I'm a newbie to Hibernate:
Suppose in my Dao methdod:
@Override public List<client> getCilentRecord(Integer clientId) {
List<client> clients = getHibernateTemplate().fin
d(
"from clientRecord where clientId =?", clientId);
...
createdDate field is defined as datetime in the hibernate table.
Now I want to display today's data (createdDate = currentdate). how could I revise the HQL query above? Thanks for any hint.
Answer : Hibernate HQL question
"from clientRecord where clientId =? and createdDate=?", clientId, new Date());
Random Solutions
C++ uninitialized local variable
Suggestions on Architecture for New Application
Run the first php script in background - When done - run the next script ...
OpenVPN Management Port 7505 telnet problem
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
importing a date field from oracle into MSSQL
Mail delivery has failed
Clear only first 5 columns
Airport Code with reverse geo coding with google maps api
Outlook 2007 freezes forwarding email