Skip to content

002_0001 - NumberOfPersistantEntities

No more than 15 persistent entities within one domain model

Split domain model into multiple modules.

Metadata

authors:
- Xiwen Cheng <x@cinaq.com>
- Andre Luijkx
category: Maintainability
input: .*/DomainModels\$DomainModel\.yaml
rulename: NumberOfPersistantEntities
rulenumber: '002_0001'
scope: package
severity: MEDIUM

Description

The bigger the domain models, the harder they will be to maintain. It adds complexity to your security model as well. The smaller the modules, the easier to reuse.

Remediation

Split domain model into multiple modules.

Test cases

# No test file found