类 AttributeConverterSqlTypeDescriptorAdapter

  • 所有已实现的接口:
    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.

    作者:
    Steve Ebersole
    另请参阅:
    序列化表格