06 2021 档案
摘要:增加 crud.excecuteQuery(getSession()); Session session= getSession(); while(true){ System. out. println(' CRUD开始 请输入你的操作"): System. out. println(" 1.添加
阅读全文
摘要:分页查询 @Test public void testPageQuery() { SessionFactory sf = null; Session session = null; Transaction ts = null; try { sf = HibernateUtils.getSession
阅读全文
摘要:方法重写 package entity; import java.util.Objects; public class UserOver { private int id; private String name; private String gender; // getter() and set
阅读全文
摘要:创建单例模式 package cn.hrbust.dao; import org.hibernate.HibernateException; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; pu
阅读全文

浙公网安备 33010602011771号