Entity vs Value

 Entity

- Entity has a identifier. The identifier is unique for each entity. That's why each entity has a different identifier from each other. 

The timing of generating an entity's identifier varies depending on the characteristics of the domain and the technology used.

  • Generates based on specific rules
  • UUID or Nano ID -> Unique Identifier Generator
  • Manually input value
  • Serial Number

Value

A value type is used to represent a conceptually complete whole.

Comments

Popular posts from this blog

@ModelAttribute vs @RequestBody in Validation

Side Project(a self-imposed 3-day "Hackathon" challenge)

Google: The King is Back