@Test public void testQueryByName() { Util.report("result size ->" + userService.queryByName("w").size()); }
public List<User> queryByName(String nameLike) { return userDao.queryUsersByName(nameLike); }
UserService { public List<User> queryByName(String nameLike) { return userDao.queryUsersByName(nameLike); } }
UserService { public List<User> queryByName(String nameLike) { return userDao.queryUsersByName(nameLike); }  }
UserService { public List<User> queryByName(String nameLike) { return userDao.queryUsersByName(nameLike); }  User getUserById(long id); void insert(User user); @Transactional(propagation = Propagation.REQUIRED) void insert2(User user); @Transactional(propagation = Propagation.REQUIRES_NEW) User queryUserById(long id); List<User> queryByName(String nameLike); }
UserService { public List<User> queryByName(String nameLike) { return userDao.queryUsersByName(nameLike); }  User getUserById(long id); void insert(User user); @Transactional(propagation = Propagation.REQUIRED) void insert2(User user); @Transactional(propagation = Propagation.REQUIRES_NEW) User queryUserById(long id); List<User> queryByName(String nameLike);  }