Class BooleanJpaConverter

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

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

      • BooleanJpaConverter

        public BooleanJpaConverter()
    • Method Detail

      • convertToDatabaseColumn

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

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