Class BooleanJpaConverter

  • All Implemented Interfaces:
    jakarta.persistence.AttributeConverter<Boolean,​Integer>

    public class BooleanJpaConverter
    extends Object
    implements jakarta.persistence.AttributeConverter<Boolean,​Integer>
    Author:
    Loc Ha
    • Constructor Detail

      • BooleanJpaConverter

        public BooleanJpaConverter()
    • Method Detail

      • convertToDatabaseColumn

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

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