A Persistence Framework for Scala and NoSQL

View project on GitHub

building the domain model

Once all the elements we want to persist have been created, we gather them all together into a DomainModel object. We do this in SimblDomainModel:

package simbl.domain

import longevity.model.annotations.domainModel

@domainModel object SimblDomainModel

The @domainModel annotation uses package scanning to gather up all the types we have labelled as @persistent and @component.

prev: username and email
up: getting started guide
next: building the longevity context