如何使用spring中hibernate返回获取list集合
摘要:
举例如下:public List<Invoice> queryInvoice(final Condition condition) {return (List<InvoiceResult>) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session s) throws HibernateException, SQLException { //创建sql语句 StringBuilder sql = new StringBuilder(" 阅读全文
posted @ 2011-11-10 11:07 若菲 阅读(1055) 评论(0) 推荐(0) 编辑