I have a question related to MVP design pattern.
I have a View that passes to the presenter all events. The presenter has the bussiness logic and updates the view. The model is just a collection of JPA entities .
The question is, who is responsible for accessing the database and retrieving the model?
My first thought is that this is a presenter responsibility. BUT, imagine that the same business logic is necessary in several pages, for example, verify if a user has permission to access something. In this case, the business logic would appear in several presenter classes, which is not good.
What would be the best implementation?