getValue
Reads a property delegated to a CompositeColumn, which stores a single value across several columns:
object Accounts : IntIdTable() {
val balance = compositeMoney(8, 2, "balance")
}
class Account(id: EntityID<Int>) : IntEntity(id) {
var balance by Accounts.balance // read and written as one MonetaryAmount
companion object : IntEntityClass<Account>(Accounts)
}Content copied to clipboard
operator fun <Unwrapped, Wrapped> EntityFieldWithTransform<Unwrapped, Wrapped>.getValue(o: Entity<ID>, desc: KProperty<*>): Wrapped
Reads a property delegated to a transformed column, converting the stored value on the way out:
class Film(id: EntityID<Int>) : IntEntity(id) {
var tags by Films.tags.transform(wrap = { it.split(",") }, unwrap = { it.joinToString(",") })
companion object : IntEntityClass<Film>(Films)
}Content copied to clipboard