日期:2014-05-17 浏览次数:20683 次
public List<?> getPassword(String userName) throws Exception{ Session session = HibernateSessionFactory.getSession(); tx = session.beginTransaction(); List<?> list = null; try { String HQL = "from SysUserInfo t where t.userName = ?"; Query query = session.createQuery(HQL).setParameter(0, userName); list = query.list(); tx.commit(); return list; } finally { this.closeSession(); } }
public InvocationTargetException(Throwable target) { super((Throwable)null); // Disallow initCause this.target = target; }