Class YearAttributeConverter

java.lang.Object
org.cxbox.model.core.converter.YearAttributeConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Year,Integer>

public class YearAttributeConverter extends Object implements jakarta.persistence.AttributeConverter<Year,Integer>
  • Constructor Details

    • YearAttributeConverter

      public YearAttributeConverter()
  • Method Details

    • convertToDatabaseColumn

      public Integer convertToDatabaseColumn(Year attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Year,Integer>
    • convertToEntityAttribute

      public Year convertToEntityAttribute(Integer dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Year,Integer>