Hello, I found small mistake here:
|
Optional<CustomerData> findByEmail(String email); |
It seems for some reason that CustomerData (JPA) instead of Customer is used in the Repository interface and therefore our inner layer (usecase) depends on the outer layer (persistence).
But anyways I would like to thank you for this repository, very helpful!