@@ -0,0 +1,1310 @@
+package io.reactivesw.customer.server.common.utils;%0A%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport io.reactivesw.customer.server.common.types.LocalizedString;%0A%0Aimport javax.persistence.AttributeConverter;%0Aimport java.io.IOException;%0Aimport java.util.Map;%0A%0A/**%0A * Created by Davis on 16/11/16.%0A */%0Apublic class JpaConverterJson implements AttributeConverter%3CLocalizedString, String%3E %7B%0A%0A  private final static ObjectMapper objectMapper = new ObjectMapper();%0A%0A  @Override%0A  public String convertToDatabaseColumn(LocalizedString meta) %7B%0A    try %7B%0A      return objectMapper.writeValueAsString(meta.getLocalized());%0A//      return objectMapper.writeValueAsString(meta);%0A//      return %22%7Baaaaaaa:sss%7D%22;%0A    %7D catch (Exception ex) %7B%0A      return null;%0A      // or throw an error%0A    %7D%0A  %7D%0A%0A  @Override%0A  public LocalizedString convertToEntityAttribute(String dbData) %7B%0A    try %7B%0A      LocalizedString localizedString = new LocalizedString();%0A      Map%3CString, String%3E localized = objectMapper.readValue(dbData, Map.class);%0A      localizedString.setLocalized(localized);%0A      return localizedString;%0A//      return objectMapper.readValue(dbData, Object.class);%0A    %7D catch (IOException ex) %7B%0A      // logger.error(%22Unexpected IOEx decoding json from database: %22 + dbData);%0A      return null;%0A    %7D%0A  %7D%0A%0A%7D%0A

add localizedstring converter