Вот чего я пытаюсь достичь :
Код: Выделить всё
CRUD operations should work for any entity.
Custom queries (e.g., searching by a field like email) may work on user entity
I’m currently using JpaRepository for the implementation.
Код: Выделить всё
Is it a good practice to use a single generic repository for all entities, especially in a large project?
Are there any potential downsides or limitations to this approach?
Should I stick to individual repositories for each entity for better maintainability and scalability?
Do I need to add anything to this Spring folder structure?
``
Код: Выделить всё
@Service
public class LoginService {
public boolean validateLogin(Map credentials){
return true;
}
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... -in-spring