Still struggling where to put logic ?
I hope this read may help:
http://www.springframework.org/node/97
The responsability of
Presentation Layer
Business Layer
Persistence Layer
Domain Layer
Is well explained there.
Important note is that the domain layer is a "cross-layer" layer (not just a layer on top of another layer).
Quote:
"The business layer should be responsible for the following:
* Handling application business logic and business validation
* Managing transactions
* Allowing interfaces for interaction with other layers
* Managing dependencies between business level objects
* Adding flexibility between the presentation and the persistence layer so they do not directly communicate with each other
* Exposing a context to the business layer from the presentation layer to obtain business services
* Managing implementations from the business logic to the persistence layer"
Quote:
"... The domain object layer consists of objects that represent real-world business objects such as an Order, OrderLineItem, Product, and so on ..."
HTH,
José.


Reply With Quote
