hi Matt, In UserDaoHibernate there is a method public String getUserPassword(String username) { SimpleJdbcTemplate jdbcTemplate = new SimpleJdbcTemplate(SessionFactoryUtils.getDataSource(getSessionFactory())); Table table = AnnotationUtils.findAnnotation(User.class, Table.class); return jdbcTemplate.queryForObject( "select password from " + table.name() + " where username=?", String.class, username);
} why you use SimpleJdbcTemplate vsHibernateTemplate?is there any technical reason? -- Reza Farshi