Class ListLongJsonbConverter

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

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

    • ListLongJsonbConverter

      public ListLongJsonbConverter()
  • Method Details

    • convertToDatabaseColumn

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

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