declaring the domain model
Before we start building out the elements of our domain, we want to declare the domain model as a
type. We call it
SimblDomainModel, and decorate it with a
package simbl.domain import longevity.model.annotations.domainModel @domainModel trait SimblDomainModel
@domainModel annotation does not do anything to our
SimblDomainModel trait itself. Instead,
it inserts some useful behind-the-scenes information into the
SimblDomainModel companion object.
The user manual has all the details of what goes on behind the scenes.