je dois écrire une requête pour obtenir un objet entre une plage de temps, actuellement la requête ressemble à ceci:HQL (veille prolongée) Plage d'horodatage correspondance
Timestamp from = ...
Timestamp to = ...
getHibernateTemplate().find("from " + Person.class.getName() + " ml where ml.lastModifiedOn>="+from.toString()+" and m1.lastModifiedOn<=" + to.toString());
Cependant, ce travail de doesnot pour Des raisons évidentes. Comment puis-je formater l'horodatage pour être acceptable par la requête.
org.springframework.orm.hibernate3.HibernateQueryException: jeton inattendu: 16 près de la ligne 1, colonne 123 [ml de personne où ml.lastModifiedOn> = 12/02/2010 16: 00: 21,292 et m1.lastModifiedOn
essayer aaaa-MM-JJ HH: MM: SS – Inv3r53
ne fonctionne pas. . – Saky