예제 #1
0
 /**
  * Method to find employee by UserName
  *
  * @param username
  * @return
  */
 public Employee findEmployeeByUserId(String username) {
   // TODO Auto-generated method stub
   return employeeRepository.findByUserId(username);
 }
예제 #2
0
  /**
   * method to get all the employers from database
   *
   * @return
   */
  public List<Employee> findAllEmployee() {

    return employeeRepository.findAll();
  }