How to use entitymanager with Micronaut?
问题 I'm new in Micronaut framework and I'm trying to use entitymanager to create my repository. I created my repository like this public interface EmployeeRepository { Employee save(@NotNull Employee employee); Employee update(@NotNull Employee employee); List<Employee> findAll(); Optional<Employee> findById(@NotNull Long id); } and I used this class to implement the interface and to inject entitymanager @Singleton public class EmployeeRepositoryImpl implements EmployeeRepository{