Class StringMapConverterBase<K,​V>

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<java.util.Map<K,​V>,​StringMapDescriptor.StringMap>
    Direct Known Subclasses:
    CurrencyToBillingConverter

    public abstract class StringMapConverterBase<K,​V>
    extends java.lang.Object
    implements javax.persistence.AttributeConverter<java.util.Map<K,​V>,​StringMapDescriptor.StringMap>
    Base JPA converter for Map objects that are stored in a column with data type of hstore in the database.
    • Constructor Detail

      • StringMapConverterBase

        public StringMapConverterBase()
    • Method Detail

      • convertToDatabaseColumn

        public StringMapDescriptor.StringMap convertToDatabaseColumn​(java.util.Map<K,​V> attribute)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<K,​V>
      • convertToEntityAttribute

        public java.util.Map<K,​V> convertToEntityAttribute​(StringMapDescriptor.StringMap dbData)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<K,​V>