Package-level declarations

Types

Link copied to clipboard

Exclude a property from mapping

Link copied to clipboard
annotation class JoinMany(val elemConverter: KClass<out ValueConverter> = ValueConverter::class, val childEntityType: KClass<*> = Any::class)

Indicate that a property is a collection of one-to-many child objects in a "LEFT JOIN" query Child object must have at least one property annotated as an identifying column.

Link copied to clipboard

Indicate that a property is a one-to-one object, which must have at least one property annotated as an identifying column. If all identifying columns are null, then this one-to-one property will be null.

Link copied to clipboard
annotation class MappedProperty(val name: String = "", val isId: Boolean = false, val valueConverter: KClass<out ValueConverter> = ValueConverter::class)

Indicate that a property is a column value or a parameter value.

Link copied to clipboard

Indicate that there are MappedProperty and other mapping-annotations-annotated properties nested within this object.

Link copied to clipboard
open class ValueConverter

Used by MappedProperty annotation and JoinMany annotation to indicate a value should be converted when getting value from ResultSet and setting a parameter in PreparedStatement.