O'Reilly logo

Implementing Domain-Driven Design by Vaughn Vernon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Digging for Essential Behavior

After essential attributes were identified, the team could look into indispensable behavior . . .

After looking back at the basic requirements the team was given, they now sought the behavior of Tenant and User:

• Tenants may be active or be deactivated.

When we think of activating and deactivating a Tenant, we probably visualize a Boolean toggle. As true as that may be, how it is implemented is unimportant here. If we were to place active in the attributes compartment of Tenant in the class diagram, would that necessarily tell the reader anything useful? In Tenant.java, would the following attribute declaration reveal intentions?

public class Tenant extends Entity {     ...     private boolean active;     ... ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required