JPA Method
in javax.persistence.AttributeConverter

X convertToEntityAttribute(
  Y dbData
)


Converts the data stored in the database column into the value to be stored in the entity attribute. Note that it is the responsibility of the converter writer to specify the correct dbData type for the corresponding column for use by the JDBC driver: i.e., persistence providers are not expected to do such type conversion.
Parameters:
dbData - the data from the database column to be converted
Return:
the converted value to be stored in the entity attribute
Since:
JPA 1.0