Fixed the domain model to inherit from T4 template models