Skip to content

Instantly share code, notes, and snippets.

@eranharel
Created May 25, 2011 12:27
Show Gist options
  • Save eranharel/990861 to your computer and use it in GitHub Desktop.
Save eranharel/990861 to your computer and use it in GitHub Desktop.
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