How can I configure the setting of the HQL condition, which selects the entire object whose date is more than 3 hours from now .
That should work.
Calendar cal = Calendar.getInstance(); cal.add(Calendar.HOUR_OF_DAY, 3); Query q = session.createQuery("from table where date < :date"); q.setCalendarDate("date", cal); q.list();
Source: https://habr.com/ru/post/1342896/More articles:Any way to call c / C ++ code from python without changing c / C ++ code? - c ++embed google maps in IE - browserShortcuts MATLAB - matlabWhere to declare a class - c #Faster alternatives for "IN" statements? - mysqlCan QPointer be the key to std :: map - c ++JNDI jdbc data source in embedded tomcat 7 - tomcatManual pages for command line Ruby functions - command-linejquery masonry: nth-child () will not work? - jqueryAre there binutils for llvm? - gccAll Articles