Class CustomAnnotationJpaConverter

java.lang.Object
org.tasktide.core.model.CustomAnnotationJpaConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Map<String,Object>, String>

public class CustomAnnotationJpaConverter extends Object implements jakarta.persistence.AttributeConverter<Map<String,Object>, String>
CustomAnnotation JSON SERDE
  • Constructor Details

    • CustomAnnotationJpaConverter

      public CustomAnnotationJpaConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(Map<String,Object> attribute)
      Serialize CustomAnnotation data to JSON string
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Map<String,Object>, String>
      Parameters:
      attribute -
      Returns:
      String
    • convertToEntityAttribute

      public Map<String,Object> convertToEntityAttribute(String dbData)
      Deserialize CustomAnnotation data from JSON string
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Map<String,Object>, String>
      Parameters:
      dbData -
      Returns:
      Map-String, Object