@Override
 @Transactional
 public void updateUserDetail(UserDetail userDetail, String userName) {
   userDetail.setUpdateDate(new Date());
   userDetail.setUpdateUser(userName);
   userDetailDao.update(userDetail);
 }
 @Override
 @Transactional
 public void createUserDetail(UserDetail userDetail, String userName) {
   Date currentDate = new Date();
   userDetail.setCreateDate(currentDate);
   userDetail.setCreateUser(userName);
   userDetail.setUpdateDate(currentDate);
   userDetail.setUpdateUser(userName);
   userDetailDao.create(userDetail);
 }
 @Override
 @Transactional
 public void deleteUserDetail(UserDetail userDetail) {
   userDetailDao.delete(userDetail);
 }
 @Override
 @Transactional(readOnly = true)
 public List<UserDetail> getUserDetails(String search) {
   return userDetailDao.findUserDetailByKeyword(search);
 }
 @Override
 @Transactional(readOnly = true)
 public List<UserDetail> getAllUserDetails() {
   return userDetailDao.findAll();
 }