com.icthh.xm.commons.domainevent.outbox.domain.converter.MapToStringConverter Maven / Gradle / Ivy
package com.icthh.xm.commons.domainevent.outbox.domain.converter;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import jakarta.persistence.AttributeConverter;
import jakarta.persistence.Converter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@Slf4j
@Converter
public class MapToStringConverter implements AttributeConverter