クラス PropertyValueConverterRegistrar<P extends PersistentProperty<P>>

java.lang.ObjectSE
org.springframework.data.convert.PropertyValueConverterRegistrar<P>

public class PropertyValueConverterRegistrar<P extends PersistentProperty<P>> extends ObjectSE
PropertyValueConversions で使用できる SimplePropertyValueConverterRegistryPropertyValueConverter を登録するために使用される構成クラス。

registerConverter(Class, Function) を介して型安全コンバーターを登録することが可能です

 registrar.registerConverter(Person.class, Person::getName) //
                .writing(StringConverter::encrypt) //
                .reading(StringConverter::decrypt);
 
導入:
2.7
作成者:
Christoph Strobl, Oliver Drotbohm