SoftDelete

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class SoftDelete(val ttlSeconds: Int = 86400, val markerProperty: String = "")

Parameters

markerProperty

Opt-in name of a Boolean property on the entity that permanently records deletion state (true = deleted). Required to use findActive() — without it there is no CQL predicate that can distinguish a soft-deleted row from a live one before its TTL expires. The marker column itself is written without a TTL, so it survives after the other columns' values are gone.

Properties

Link copied to clipboard
Link copied to clipboard
val ttlSeconds: Int = 86400