com.wizzdi.dynamic.properties.converter.postgresql.PostgresqlJsonConverter Maven / Gradle / Ivy
package com.wizzdi.dynamic.properties.converter.postgresql;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.wizzdi.dynamic.properties.converter.JsonConverterImplementation;
import org.postgresql.util.PGobject;
import org.springframework.stereotype.Component;
import jakarta.persistence.AttributeConverter;
import jakarta.persistence.Converter;
import java.io.IOException;
import java.util.Map;
@Converter(autoApply = false)
@Component
public class PostgresqlJsonConverter implements JsonConverterImplementation, AttributeConverter