日期:2014-05-17 浏览次数:20708 次
public List<String> MyWorkList() {
Session session = hibernatetemplate.getSessionFactory().openSession();
Query query = session
.createSQLQuery("select workname from work where 1=1 limit 1,10");
return (List<String>)query.list();
}