24 Date begin = java.sql.Date.valueOf("2009-03-24");
25 Date end = java.sql.Date.valueOf("2009-03-26");
26 List<A> result = session.createQuery("from A a where a.date > :beginTime and a.date <= :endTime").setTimestamp("beginTime", begin).setTimestamp("endTime", end).list();
27 for(A a : result){
28 System.out.println(a.getId());
29 System.out.println(a.getTitle());
30 System.out.println(a.getDate());
31 }
32 */
33
34 // 接纳QBC的体例。
35 Date begin = java.sql.Date.valueOf("2009-3-24");