← Back to Stormify Documentation

CRUDTable

interface CRUDTable

Mixin interface that adds create, update, and delete convenience methods directly on an entity class, delegating to the default Stormify instance.

Functions

Link copied to clipboard
open fun create()

Inserts this entity into the database.

Link copied to clipboard
open fun delete()

Deletes this entity from the database based on its primary key.

Link copied to clipboard
open fun update()

Updates this entity in the database based on its primary key.