摘要:
1、使用对象更新 public void updateImagePath(Weibo weibo){ Session session = HibernateUtil.currentSession(); try { Transaction tx = session.beginTransa... 阅读全文
摘要:
1、条件查询 public List selectOne(int k){ Session session = HibernateUtil.currentSession(); try { Criteria c=session.createCriteria(Weibo.class); ... 阅读全文
摘要:
public class CustomDialect extends MySQL5Dialect { public CustomDialect() { super(); registerHibernateType(Types.DECIMAL, Hiber... 阅读全文