dwsmith75 wrote:
Just create a UserType (
http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-types-custom)
In your method:
Code:
nullSafeSet(PreparedStatement st, Object value, int index)
Generate the md5 for the password
Hi,
any example? let say if I got a users table contain the following columns:
userid, passwd, email.
The usual method is just like
Users users = new Users();
users.setUserid("tomcat");
users.setPasswd("tomcat");
users.setEmail("tom@tom.com");
usersDao.save(users);
how to implement the
nullSafeSet(PreparedStatement st, Object value, int index) ?
Thanks !