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
Is it ok to plug a simple power strip into a UPS
Problem: Website SSL/TLS issue causing "Internet Explorer cannot display the webpage." to be displayed.
index in oracle
SCCM Software Report By Major Revision
Object reference not set to an instance of an object.
Setting Up Exchange Email on Apple IPAD
Previous Month-end Date based on Date in Text Box
Threaded or async service
Required Field Validator for 2 controls
Identifying creator of fake facebook page