Exemplo n.º 1
0
 @Override
 public HX_user getHXuserByNickName(String name) {
   HX_user hx_user = new HX_user();
   HX_userPO hx_userPO = hX_userDao.findHx_userByNickName(name);
   if (hx_userPO != null) {
     hx_user.setPassword(hx_userPO.getHx_password());
     hx_user.setUsername(hx_userPO.getHx_username());
     hx_user.setUserId(String.valueOf(hx_userPO.getUserId()));
     hx_user.setNickName(hx_userPO.getNickname());
   }
   return hx_user;
 }
Exemplo n.º 2
0
 @Override
 public HX_user getHX_user(Long id) {
   HX_user hx_user = new HX_user();
   HX_userPO hx_userPO = hX_userDao.findHx_userByUserPOId(String.valueOf(id));
   if (hx_userPO != null) {
     hx_user.setPassword(hx_userPO.getHx_password());
     hx_user.setUsername(hx_userPO.getHx_username());
     hx_user.setUserId(String.valueOf(hx_userPO.getUserId()));
     hx_user.setId(hx_userPO.getId());
   }
   return hx_user;
 }