可以调用hibernate 的update方法吗?
54五味子
2011-06-29
Transaction tr = session.beginTransaction();
User b = (User)session.get(User.class, 1); b.setName("梁启超"); tr.commit(); |
54五味子
2011-06-29
Transaction tr = session.beginTransaction();
User b = (User)session.get(User.class, 1); b.setName("梁启超"); tr.commit(); |