Domain Model Business Logic
Save them to the data store show to the user or pass to 3rd party services.
Domain model business logic. Frameworks like hibernate even jpa allows us to embed custom sql s inside the domain model. In software engineering a domain model is a conceptual model of the domain definition needed that incorporates both behaviour and data. In ontology engineering a domain model is a formal representation of a knowledge domain with concepts roles datatypes individuals and rules typically grounded in a description logic.
Sample domain model for a health insurance plan. Also imagine a method called sell inside a book object. Replicating what should happen in a particular domain when it s possible and when it s not possible.
The business domain model provides the business vocabulary the terms and facts on which business rules can be modeled. In order to manage business logic complexity the approach is to use object oriented programming concepts to model complex behaviour between objects. Domain logic aka business logic business rules and domain knowledge is the logic that makes business critical decisions.
In my mind that is a mixing of concerns.