transform
Deprecated
This function was replaced with more general alternative on DSL layer. DAOs transform() is deprecated and will be removed in future releases. Please use the transform function from the DSL layer. Please log a request on YouTrack (https://youtrack.jetbrains.com/newIssue?project=EXPOSED) if a use-case cannot be sufficiently covered by the DSL transform(). With version 0.53.0 Entity transformation got several breaking changes. Check related PR (https://github.com/JetBrains/Exposed/pull/2143) for more details.
Replace with
object : Table() { val c = column().transform(transformer) }
Returns a EntityFieldWithTransform delegate that transforms this stored Unwrapped value on every read.
Parameters
An instance of ColumnTransformer to handle the transformations.
Samples
org.jetbrains.exposed.sql.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.sql.tests.shared.entities.TransformationEntityDeprecated
This function was replaced with more general alternative on DSL layer. DAOs transform() is deprecated and will be removed in future releases. Please use the transform function from the DSL layer. Please log a request on YouTrack (https://youtrack.jetbrains.com/newIssue?project=EXPOSED) if a use-case cannot be sufficiently covered by the DSL transform(). With version 0.53.0 Entity transformation got several breaking changes. Check related PR (https://github.com/JetBrains/Exposed/pull/2143) for more details.
Replace with
object : Table() { val c = column().transform(wrap, unwrap) }
Returns a EntityFieldWithTransform delegate that transforms this stored Unwrapped value on every read.
Parameters
A pure function that converts a transformed value to a value that can be stored in this original column type.
A pure function that transforms a value stored in this original column type.
Samples
org.jetbrains.exposed.sql.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.sql.tests.shared.entities.TransformationEntityDeprecated
This function was replaced with more general alternative on DSL layer. DAOs transform() is deprecated and will be removed in future releases. Please use the transform function from the DSL layer. Please log a request on YouTrack (https://youtrack.jetbrains.com/newIssue?project=EXPOSED) if a use-case cannot be sufficiently covered by the DSL transform(). With version 0.53.0 Entity transformation got several breaking changes. Check related PR (https://github.com/JetBrains/Exposed/pull/2143) for more details.
Replace with
object : Table() { val c = column().transform(wrap, unwrap) }
Returns a EntityFieldWithTransform that extends transformation of existing EntityFieldWithTransform.
Parameters
A function that transforms the value to the wrapping type of previously defined transformation
A function that transforms value to the wrapping type