public interface AttributeConverter<X,Y>
| Modifier and Type | Method and Description | 
|---|---|
Y | 
convertToDatabaseColumn(X attribute)
Converts the value stored in the entity attribute into the
 data representation to be stored in the database. 
 | 
X | 
convertToEntityAttribute(Y dbData)
Converts the data stored in the database column into the
 value to be stored in the entity attribute. 
 | 
Y convertToDatabaseColumn(X attribute)
attribute - the entity attribute value to be convertedX convertToEntityAttribute(Y dbData)
dbData - the data from the database column to be convertedCopyright © 2016. All rights reserved.