コード例 #1
0
 @Override
 public void save(String userName, String password) {
   User user = new User();
   user.setUserName(userName);
   user.setPassword(password);
   userDao.save(user);
 }
コード例 #2
0
 @Override
 public void Login(String userName, String password) {
   List<User> list = userDao.findAll();
   if (list.size() > 0) {
     User user = list.get(0);
     System.out.println(user.getUserName());
     System.out.println(user.getPassword());
   }
 }