Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tugberkugurlu/174a2c71c507e8a52ee2213e50bc145c to your computer and use it in GitHub Desktop.
Save tugberkugurlu/174a2c71c507e8a52ee2213e50bc145c to your computer and use it in GitHub Desktop.

Value Object

An Address is a good example of a value object. Both addresses with the same attributes will always be the same.

Entity

A User is a good example for an entity. It has an identity and even if two different users have same attributes, it will not be a match.

Aggregate

Aggregate Root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment