When working with annotations on entities in JPA, do these entities belong to the model layer or the persistence layer?

Does there have to be some kind of clone of the entities (simple JavaBeans) in the model layer so it could be decoupled entirely from JPA?

What is the best practice here?

没有正确的解决方案

许可以下: CC-BY-SA归因
scroll top