M
M
microf2019-03-11 12:52:53
Java
microf, 2019-03-11 12:52:53

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

1 answer(s)
A
Alexander Kosarev, 2019-03-11
@jaxtr

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 question

Ask a Question

731 491 924 answers to any question