Domain
A .play file can declare the domain it belongs to. The domain is a qualified name that groups related files — typically the name of the business domain a bounded context sits in.
Syntax
Section titled “Syntax”domain <Qualified.Name>- Optional — a file without a
domainline belongs to no domain. - At most one per file — a second
domainline is a compile error. - First in the file — the declaration must appear before everything else, including imports.
Example
Section titled “Example”domain Sales
import Customers.CustomerRegistered
module Invoicing ...