Class ObjectJsonbConverter

java.lang.Object
cn.dinodev.spring.data.converts.ObjectJsonbConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Object,org.postgresql.util.PGobject>

@Component public class ObjectJsonbConverter extends Object implements jakarta.persistence.AttributeConverter<Object,org.postgresql.util.PGobject>
Author:
Cody Lu
  • Constructor Details

    • ObjectJsonbConverter

      public ObjectJsonbConverter()
  • Method Details

    • convertToDatabaseColumn

      public org.postgresql.util.PGobject convertToDatabaseColumn(Object attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Object,org.postgresql.util.PGobject>
    • convertToEntityAttribute

      public Object convertToEntityAttribute(org.postgresql.util.PGobject dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Object,org.postgresql.util.PGobject>