Interface AttributeConverter<X,Y>
- Type Parameters:
X- The entity value typeY- The persisted value type
- All Known Implementing Classes:
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
-