Skip to content

Domain Core Module

Business Logic

Business logic that cannot fit in the aggregate. Used when multiple aggregates required in business logic Can interact with other domain services

Use or need of common domain module

  • BaseEntity
  • AggregateRoot
  • BaseId(e.g: V.O)

Part I.

  • Aggregate Root
  • Entities
  • Value Object

Part II

  • Exception classes
  • Domain Events
  • Domain Service

Why not use Lombok

Lombok is a Java library that helps to reduce boilerplate code in Java classes, such as constructors, getters, and setters. While it can be useful, some developers prefer not to use it due to concerns about code readability and maintainability.

Why no?

NOT: For the core logic, is not recommended.It is bad idea use any framework that autogenare code, becasue, you need to see code directly, maybe add any validation.

🕹️ Plugins to auto-generate builder without lose the control

InnerBuilder