DomainEntity

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class DomainEntity(source)

Marks a data class as a root entity.

A class that is also the target-type of a PersistenceJoinOne, PersistenceJoinMany or PersistenceJoinManyThrough relation, or that is a DomainEntityProjection, is never a root.