摘要:
/*** 按照 id 查询*/public void loadCustomer(){Session s = sf.openSession();Transaction tx = s.beginTransaction();Customer c = (Customer) s.load(Customer.class,1);System.out.println(c.getName()); tx.commit();s.close();}/*** 更新*/public void update1(){Session s = sf.openSession();Transaction tx = s.beginTr 阅读全文
posted @ 2012-09-20 23:50
曾小弦老师
阅读(918)
评论(0)
推荐(0)
浙公网安备 33010602011771号