Class BooleanYNConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<Boolean,​String>

    public class BooleanYNConverter
    extends Object
    implements javax.persistence.AttributeConverter<Boolean,​String>
    Converts the char 'Y'/'N' columns values into boolean true/false java mappings
    • Constructor Detail

      • BooleanYNConverter

        public BooleanYNConverter()
    • Method Detail

      • convertToDatabaseColumn

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

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