DomainUpdate

annotation class DomainUpdate(val type: KClass<*> = Unit::class, val property: String = "")(source)

Adds this constructor property to the generated update command of its DomainEntity, named Update{Entity}, as a PatchField that defaults to PatchField.Unset. An entity without such properties has no update command.

Works like DomainCreate. A relation with PersistenceManageChildren is only supported with OneToManyUpdateStrategy.REPLACE_ALL, and is updated with a list of the child's create command.

Properties

Link copied to clipboard
Link copied to clipboard
val type: KClass<*>