Entity

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Entity(val type: String = "")

Annotation to mark a class as a Keystone entity.

Parameters

type

The unique type identifier for this entity. If empty, the class name will be used.

Example:

@Entity(type = "my_type")
data class Profile(val name: String)

Properties

Link copied to clipboard