All Questions
Tagged with lazy-initializationdomain-driven-design
2 questions
-3votes
1answer
2kviews
Is it good practice to call service layer through domain object getters?
Tell me anybody, is it good practice to call service layer methods through domain object getters? Let me show you with an example: public class User { private long id; private String name; ...
21votes
6answers
18kviews
DDD Injecting Services on Entity Methods Calls
Short format of question Is it within best practices of DDD and OOP to inject services on entity method calls? Long format example Let's say we have the classic Order-LineItems case in DDD, where ...