Created
May 25, 2011 12:27
-
-
Save eranharel/990861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmployeeService { | |
private final EmployeeDao employeeDao; | |
public EmployeeService(final EmployeeDao employeeDao) { | |
this.employeeDao = employeeDao; | |
} | |
public String findManagerName(final Long employeeId) { | |
if (null == employeeId) { | |
throw new IllegalArgumentException("employeeId must not be null"); | |
} | |
return employeeDao.findManager(employeeId).getName(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment