RsColumn

annotation class RsColumn(val name: String = "", val isId: Boolean = false, val converter: KClass<out RsValueConverter> = RsNoOpConverter::class)

Map a property to a column.

By default, property without mapping annotation is mapped to a column based on the property's name.

Properties

Link copied to clipboard

A converter class to convert value from ResultSet.getObject before assigning it into the property.

Link copied to clipboard
val isId: Boolean = false

Specify if the column is an ID of the entity you are going to map. More than 1 columns can be marked as ID columns (composite key). This only need to be used when RsToMany is used

Link copied to clipboard

Name of the column to map.