← Back to Stormify Documentation

EntityMeta

class EntityMeta<T : Any>(val type: KClass<T>, val constructor: () -> T, val properties: List<PropertyMeta<T>>, val tableNameOverride: String?)

Compile-time metadata for a mapped entity class. Holds the class reference, a constructor lambda, property descriptors, and an optional table name override.

On Native platforms, instances are generated by the annotation processor (annproc) and registered via EntityRegistrar. On JVM, metadata can also be created at runtime via reflection.

Constructors

Link copied to clipboard
constructor(type: KClass<T>, constructor: () -> T, properties: List<PropertyMeta<T>>, tableNameOverride: String?)

Types

Link copied to clipboard
object Companion

Global registry of compile-time entity metadata, populated by EntityRegistrar callbacks.

Properties

Link copied to clipboard
val constructor: () -> T

lambda that creates a new instance of the entity

Link copied to clipboard

the list of mapped property descriptors

Link copied to clipboard

explicit table name, or null to derive from the class name via NamingPolicy

Link copied to clipboard
val type: KClass<T>

the Kotlin class this metadata describes