public void SaveUserTest()
 {
     User user = new User();
     user.UserID = "buyer000";
     user.Password = "******";
     user.UserName = "******";
     user.ValidFrom = Convert.ToDateTime("2008-8-18");
     user.ValidTo = Convert.ToDateTime("2012-8-18");
     user.CreateTime = DateTime.Now;
     UserDao.Save(user);
 }
 public User SaveOrUpdate(User user)
 {
     HibernateTemplate.SaveOrUpdate(user);
     return user;
 }
 public void Delete(User user)
 {
     HibernateTemplate.Delete(user);
 }