public final class ProxyAttributeConverter extends Object implements AttributeConverter<Object,Object>
AttributeConverter backed by an index to which custom generic converters
can be added after the object-graph mapping framework has been initialised.| Constructor and Description |
|---|
ProxyAttributeConverter(Class<?> entityAttributeType,
Class<?> targetGraphType,
ConversionCallbackRegistry converterCallbackRegistry)
Constructs a new
ProxyAttributeConverter based on the given arguments. |
public ProxyAttributeConverter(Class<?> entityAttributeType, Class<?> targetGraphType, ConversionCallbackRegistry converterCallbackRegistry)
ProxyAttributeConverter based on the given arguments.entityAttributeType - The type of the attribute in the entity to converttargetGraphType - The target type to which the value from the entity should be converted for saving into the graphconverterCallbackRegistry - The ConversionCallbackRegistry from which to look up the converterspublic Object toEntityAttribute(Object valueFromGraph)
toEntityAttribute in interface AttributeConverter<Object,Object>public Object toGraphProperty(Object valueFromEntity)
toGraphProperty in interface AttributeConverter<Object,Object>Copyright © 2016 Neo Technology, Inc.. All rights reserved.