JPA Method
in javax.persistence.AttributeConverter

Y convertToDatabaseColumn(
  X attribute
)


Converts the value stored in the entity attribute into the data representation to be stored in the database.
Parameters:
attribute - the entity attribute value to be converted
Return:
the converted data to be stored in the database column
Since:
JPA 1.0