← Back to Stormify Documentation

FieldInfo

data class FieldInfo(val name: String, val dbName: String, val type: KClass<*>, val isPrimaryKey: Boolean, val isReference: Boolean, val isEnum: Boolean, val enumAsString: Boolean, val sequence: String?, val isAutoIncrement: Boolean, val isInsertable: Boolean, val isUpdatable: Boolean)

Describes a single mapped field (property) of an entity, including its database column name, type, and role in CRUD operations.

Constructors

Link copied to clipboard
constructor(name: String, dbName: String, type: KClass<*>, isPrimaryKey: Boolean, isReference: Boolean, isEnum: Boolean, enumAsString: Boolean, sequence: String?, isAutoIncrement: Boolean, isInsertable: Boolean, isUpdatable: Boolean)

Properties

Link copied to clipboard

the corresponding database column name (after NamingPolicy conversion)

Link copied to clipboard

whether enum values are stored as their string name (true) or ordinal/custom integer (false)

Link copied to clipboard

whether the database auto-generates values for this field (e.g. IDENTITY columns)

Link copied to clipboard

whether the property type is a Kotlin/Java enum

Link copied to clipboard

whether this field is included in INSERT statements

Link copied to clipboard

whether this field is part of the entity's primary key

Link copied to clipboard

whether this field is a foreign key reference to another entity

Link copied to clipboard

whether this field is included in UPDATE statements

Link copied to clipboard

the Kotlin property name

Link copied to clipboard

the database sequence name used to generate values, or null if not sequence-backed

Link copied to clipboard
val type: KClass<*>

the Kotlin type of the property