i'm trying to use module pattern with facade and mediator patterns together like suggested in this link, i'm developing a project using Spring boot JPA web application with maven; what i want to achieve is to create a multi-module project using maven modules, each module will do its own work without the direct knowing of the other modules, for example i will have a module for document management and this module will use the database so it can send a message through the mediator to the module with all persistence classes, is this a good idea or is better that each module have its own persistence classes? i want to decouple the modules of my application all the possible.
My persistence module will use JPA with entity classes and repositories, then i want to expose an interface for use in the mediator.
Aucun commentaire:
Enregistrer un commentaire