# EntityFieldWithTransform

open class EntityFieldWithTransform<Unwrapped, Wrapped>(val column: Column<Unwrapped>, transformer: ColumnTransformer<Unwrapped, Wrapped>, cacheResult: Boolean = false) : ColumnTransformer<Unwrapped, Wrapped>

Class responsible for enabling Entity field transformations, which may be useful when advanced database type conversions are necessary for entity mappings.

## Constructors

EntityFieldWithTransform
Link copied to clipboard
constructor(column: Column<Unwrapped>, transformer: ColumnTransformer<Unwrapped, Wrapped>, cacheResult: Boolean = false)

## Properties

column
Link copied to clipboard
val column: Column<Unwrapped>

The original column that will be transformed

## Functions

unwrap
Link copied to clipboard
open override fun unwrap(value: Wrapped): Unwrapped
wrap
Link copied to clipboard
open override fun wrap(value: Unwrapped): Wrapped

The function used to transform a value stored in the original column type.