Class AttributeConverterSqlTypeDescriptorAdapter

  • All Implemented Interfaces:
    Serializable, SqlTypeDescriptor

    public class AttributeConverterSqlTypeDescriptorAdapter
    extends Object
    implements SqlTypeDescriptor
    Adapter for incorporating JPA AttributeConverter handling into the SqlTypeDescriptor contract.

    Essentially this is responsible for mapping to/from the intermediate database type representation. Continuing the AttributeConverter<Integer,String> example from SimpleValue.buildAttributeConverterTypeAdapter(), the "intermediate database type representation" would be the String representation. So on binding, we convert the incoming Integer to String; on extraction we extract the value as String and convert to Integer.

    See Also:
    Serialized Form