putEntity

abstract suspend fun <T : Any> putEntity(entity: T)

Stores an entity, persisting all of its mapped properties.

Parameters

entity

The entity instance to store.

Example:

val profile = SampleUserProfile(id = "u1", displayName = "Alice", ...)
storage.putEntity(profile)

Type Parameters

T

The entity type (must be annotated with @Entity).