Created
December 17, 2021 19:48
-
-
Save raviyasas/d4f271381dba2e4d894e7f001aa70d5c 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
@Service | |
@Transactional | |
public class EmployeeService { | |
@Autowired | |
public EmployeeService(EmployeeRepository employeeRepository){ | |
this.employeeRepository=employeeRepository; | |
} | |
private EmployeeRepository employeeRepository; | |
public List<Employee> getEmployees() { | |
return employeeRepository.findAll(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment