Class UrlEncodedMapConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<Map<String,​String>,​String>

    public class UrlEncodedMapConverter
    extends Object
    implements javax.persistence.AttributeConverter<Map<String,​String>,​String>
    The UrlEncodedMapConverter class implements the JPA converter from Map to URL-encoded String.
    • Constructor Detail

      • UrlEncodedMapConverter

        public UrlEncodedMapConverter()
    • Method Detail

      • convertToDatabaseColumn

        public String convertToDatabaseColumn​(Map<String,​String> map)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<Map<String,​String>,​String>
      • convertToEntityAttribute

        public Map<String,​String> convertToEntityAttribute​(String str)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<Map<String,​String>,​String>