So we're developing a modular java web application.
We have a contacts module and other modules that includes this contacts module. (like invoice, payments, leads etc.)
There is a entity in the contacts module for tracking entity transactions.
For each entity in other modules, a new record gets added to transactions entity.
I'll need to write a scheduled command that checks if the transactions are correct.
I think I need to take all the entries from modules like Invoice, Lead, Payments.
And I need to check if they're correct.
My question is:
Since this is a modular project I can't include Invoice, Lead, Payment as dependencies. How can I get all the records from other repositories? What design pattern should I follow?
Aucun commentaire:
Enregistrer un commentaire