@Overridepublic void saveManager(Manager manager) { Query query = sessionFactory.getCurrentSession().createQuery("update Manager set username = :username, password = :password where id = :id"); query.setParameter("username", manager.getUsername()); query.setParameter("password", manager.getPassword()); query.setParameter("id", manager.getId()); query.executeUpdate();}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)