摘要:
public String deleteByUserAccount(String account) { 方式一: Session session = this.getCurrentSession(); Criteria criteria = session.createCriteria(SysUserC.class).add(Restrictions.eq("account", account)); Object object = criteria.uniqueResult(); if (object == null) { return null; } else { ... 阅读全文
摘要:
public class RegisterStory { private SysUserCDao sysUserCDao; @Test public void test() { SessionFactory sessionFactory = new Configuration().configure 阅读全文