Skip to content

Commit

Permalink
implemented getAllEmployees and getEmployeeById
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Dec 5, 2017
1 parent 16bea54 commit ec95bcc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Expand Up @@ -13,4 +13,8 @@ public List<Employee> findAll() {
return null;
}

public Employee findOne(long id) {
return null;
}

}
Expand Up @@ -26,4 +26,11 @@ public Employee getMaxSalariedEmployee() {
.orElse(null);
}

public List<Employee> getAllEmployees() {
return employeeRepository.findAll();
}

public Employee getEmployeeById(long id) {
return employeeRepository.findOne(id);
}
}

0 comments on commit ec95bcc

Please sign in to comment.