Answer the question
In order to leave comments, you need to log in
Does JPA violate DDD principles?
Good afternoon. Actually, the question is in the title. JPA annotations tie us to JPA itself. Is this true? Or do you still need to create your own domain layer, repositories and other services, and place jpa in the infrastructure layer? But jpa has its own entities, services, repositories, will there be code duplication?
Answer the question
In order to leave comments, you need to log in
Why should JPA violate DDD principles? If you have a project that uses DDD, then all architectural levels (should be) abstracted, and JPA, being applied at the data access level, does not violate the principles of DDD in any way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question