随笔分类 -  Hibernate

Hibernate 组合查询
摘要:1 public List findByCondition(Student stu) { 2 StringBuilder sb=new StringBuilder("from Student where 1=1"); 3 List params=new ArrayList(); ... 阅读全文

posted @ 2014-10-30 10:16 @冰糖 阅读(265) 评论(0) 推荐(0)

HibernateUitl
摘要:1 package com.cn; 2 3 import org.hibernate.Session; 4 import org.hibernate.SessionFactory; 5 import org.hibernate.cfg.Configuration; 6 7 public fin... 阅读全文

posted @ 2014-09-19 15:21 @冰糖 阅读(341) 评论(0) 推荐(0)

导航