📄 emptest.java
字号:
package org.lxh.test;
import org.lxh.dao.EmpDAO;
import org.lxh.factory.DAOFactory;
import org.lxh.vo.Dept;
import org.lxh.vo.Emp;
public class EmpTest {
public static void main(String args[]) throws Exception {
EmpDAO ed = DAOFactory.getEmpDAOInstance();
Emp e = new Emp();
e.setEmpno("ff808081131ebdc801131ebdce2d0001");
e.setEname("李四");
e.setEage(33);
e.setEsex("女");
Dept d = new Dept();
d.setDeptno("ff808081131eb96201131eb9677a0001");
e.setDept(d);
// ed.insert(e) ;
ed.update(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -