Interface AttributeConverter<X,Y> 
- Type Parameters:
- X- The entity value type
- Y- The persisted value type
The attribute converter is used for converting mapped entity value to the persisted value and back.
- Since:
- 3.1
- Author:
- Denis Stepanov
- 
Method SummaryModifier and TypeMethodDescriptionconvertToEntityValue(Y persistedValue, @NonNull io.micronaut.core.convert.ConversionContext context) Converts the persisted value to the entity value.convertToPersistedValue(X entityValue, @NonNull io.micronaut.core.convert.ConversionContext context) Converts the entity value to the persisted value.
- 
Method Details- 
convertToPersistedValue@Nullable Y convertToPersistedValue(@Nullable X entityValue, @NonNull @NonNull io.micronaut.core.convert.ConversionContext context) Converts the entity value to the persisted value.- Parameters:
- entityValue- The entity value
- context- The conversion context.
- Returns:
- the persisted value
 
- 
convertToEntityValue@Nullable X convertToEntityValue(@Nullable Y persistedValue, @NonNull @NonNull io.micronaut.core.convert.ConversionContext context) Converts the persisted value to the entity value.- Parameters:
- persistedValue- The persisted value
- context- The conversion context.
- Returns:
- the entity value
 
 
-