请教::关于Hibernate时间问题
想将过期的数据资料取出来,用HIBERNATE数据库是ORACLE始终取不出代码:
Transaction tran = getSession().beginTransaction();
List l = null ;
Date da2 = new Date(System.currentTimeMillis());
String hql = "from InventoryN in where in.ended <?";
Query q = getSession().createQuery(hql);
q.setTimestamp(0, da2 );
l = q.list() ;
();
return l ;