Aggregate to JPA Entity mapping
问题 In a DDD -project I'm contributing to, we're seeking for some convenient solutions to map entity objects to domain objects and visa versa. Developers of this project agreed to fully decouple domain model from data model. The data layer uses JPA (Hibernate) as persistence technology. As we all reckon that persistence is an implementation detail in DDD, from a developers' point of view we're all seeking for the most appropriate solution in every aspect of the application. The biggest concern we