Software Architecture Patterns: 5 minute read
What I nerver understood:* How to disconnect the domain model from persistence.Some solutions add the OR Annotations to the domain model. Some other map the domain model to persistence with a Mapper-layer.But all of them have some constraints. For e.g. on a web api I receive a dto, map it to a domain model, map it to a persistence model and vice versa. Not much gained imho. In this example I would add the OR-annotations to the domain model and configure many-to-many by "text" so that they are not contained in the domain model.What are your thoughts?