Field Info
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
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 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