New answers tagged

4

I would say that the domain object has no relation to the persistence model you use in your application. It's true that some of the web frameworks (like Rails for instance) would assume that every domain-level object could be persisted. But it's has nothing to do with the underlying principles of DDD. DDD in general defines the concept of Repository that is ...


0

The application uses JPA/Hibernate for persistence. The current behavior is that all aggregate roots are fetched from the database, updated by the application and then written back to the database with lots of update, delete, and insert statements. Doctor, doctor, it hurts when I do this. - Well, don't do that. ORMs will never figure out the use-case you're ...


Top 50 recent answers are included