StaticcreateCreates a new EntityBuilder instance.
A new EntityBuilder
Sets the entity's properties. This method must be called before build().
Entity properties
This builder for chaining
Sets the entity's timestamps. If not called, current date will be used for both timestamps.
OptionalcreatedAt: DateCreation timestamp (defaults to now)
OptionalupdatedAt: DateLast update timestamp (defaults to now)
This builder for chaining
Fluent builder for creating Entity instances.
EntityBuilder provides a convenient way to construct entities without repeating boilerplate code for IDs and timestamps. It's especially useful in tests and repositories.
Example