@Test public void testGetUserById() throws Exception { User user = userService.getUserById(165); if (user != null) Util.report(user.name); }
public User getUserById(long id) { return userDao.getUser(id); }
UserService { public User getUserById(long id) { return userDao.getUser(id); } }
UserService { public User getUserById(long id) { return userDao.getUser(id); }  }
UserService { public User getUserById(long id) { return userDao.getUser(id); }  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 User getUserById(long id) { return userDao.getUser(id); }  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);  }