DDD – If an object is saved as a whole to the database, is it per definition an entity, or is it still possible that it is a value object?
I’m learning about Domain Driven Design and struggling with the question if a particular object should be handled as entity or value object.
DDD – If an object is saved as a whole to the database, is it per definition an entity, or is it still possible that it is a value object?
I’m learning about Domain Driven Design and struggling with the question if a particular object should be handled as entity or value object.
Producing JSON objects from JPA entities in REST API
I have a REST service producing JSON and consuming JSON.
Repository pattern vs DAO managing Entities
I am new to concepts like DAO, DAL and Domain Driven Design. In the end I want to decouple the persistence layer (mysql database) from my business objects and logic in a web application. I liked the DAO concept but I got stuck implementing it when I want to create a Business Object from database that has other entities associated with it (represented by foreign key in the db table).
Is a repository return a graph of entities violating SRP?
I’m working in this scenario