Interface AttributeConverter<X,Y>
- Type Parameters:
X- The entity value typeY- The persisted value type
- All Known Subinterfaces:
ByteVectorAttributeConverter<X>, DoubleVectorAttributeConverter<X>, FloatVectorAttributeConverter<X>, ResultReaderAttributeConverter<X,Y>, SparseByteVectorAttributeConverter<X>, SparseDoubleVectorAttributeConverter<X>, SparseFloatVectorAttributeConverter<X>, VectorAttributeConverter<X>
- All Known Implementing Classes:
GeometryJsonConverter, GeometryWktConverter, QuantityAttributeConverter
The attribute converter is used for converting mapped entity value to the persisted value and back.
- Since:
- 3.1
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription@Nullable XconvertToEntityValue(@Nullable Y persistedValue, io.micronaut.core.convert.ConversionContext context) Converts the persisted value to the entity value.@Nullable YconvertToPersistedValue(@Nullable X entityValue, io.micronaut.core.convert.ConversionContext context) Converts the entity value to the persisted value.
-
Method Details
-
convertToPersistedValue
-
convertToEntityValue
-