X- the type of the entity attribute
Y- the type of the database column
public interface AttributeConverter<X,Y>
|Modifier and Type||Method and Description|
Converts the value stored in the entity attribute into the data representation to be stored in the database.
Converts the data stored in the database column into the value to be stored in the entity attribute.
attribute- the entity attribute value to be converted
dbDatatype for the corresponding column for use by the JDBC driver: i.e., persistence providers are not expected to do such type conversion.
dbData- the data from the database column to be converted
Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.