- books “Domain-driven Design” by Eric Evans and “Implementing Domain-driven Design” by Vaughn Vernon
- value object is the object of a class whose constructor is private and which is constructed with the help of factory method inside it. they are not treated as entity. and two value objects having same state are considered to be equal.
- https://deviq.com/value-object
- they are small
- they are immutable
- https://martinfowler.com/bliki/ValueObject.html
- https://enterprisecraftsmanship.com/2016/01/11/entity-vs-value-object-the-ultimate-list-of-differences/
- value objects can be considered as @component
- address is a good example of value object
- value object should not be in a separate table.
- value object should not have own identity
- aggregates
Tuesday, August 7, 2018
domain driven design
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment