#1 Re: mORMot 1 » MVC Best Practices and Sample » 2016-06-29 13:12:56

Hi, Arnaud!

Thanks again for your promptly reply. Don´t get me wrong based on my questions that´s because I´m acting as a translator for the Delphi dev team at my office. I´m a Java dev not a Delphi one, ok? The guys asked me to question you about how they can customize the http routes because the basic ones are based on models, but if you need to create custom routes? Regards.

#2 Re: mORMot 1 » MVC Best Practices and Sample » 2016-06-28 11:27:11

Hi, Arnaud!

That´s exactly we were talking about yesterday at the office! By the way, we were thinking about database transactions as well. Maybe we could use a service layer to start transactions when multiple persistence operations are needed. What would you suggest? Two layers: service & repository? Actually we still in doubt about one thing: in example 30 MVC we have the Blog controller inheriting from TMVCApplication which clearly contains persistence logic (through RestModel class) if we create a repository inheriting from TMVCApplication this repository would be accessible through web as well (this would be an undesirable side effect)? Many thanks for your promptly reply. Good. day!

#3 mORMot 1 » MVC Best Practices and Sample » 2016-06-27 20:00:45

gribeiro
Replies: 5

Hi, there!

ME and my colleagues are looking for a sample using MVC using mORMot framework. We´ve stumbled upon example 30, but there we have coupled persistence logic to the controller which is not compatible with MVC separation of concerns. Could anyone help us providing a sample respecting MVC SoC? Many thanks in advance.


Regards,


Geovanny Ribeiro

Board footer

Powered by FluxBB