@@ -0,0 +1,447 @@
+package com.frascu.bot.newsbot.model;%0D%0A%0D%0Aimport javax.persistence.AttributeConverter;%0D%0Aimport javax.persistence.Converter;%0D%0A%0D%0A@Converter%0D%0Apublic class YesNoConverterToBoolean implements AttributeConverter%3CBoolean, String%3E %7B%0D%0A%0D%0A%09@Override%0D%0A%09public String convertToDatabaseColumn(Boolean attribute) %7B%0D%0A%09%09return attribute ? %22Y%22 : %22N%22;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public Boolean convertToEntityAttribute(String dbData) %7B%0D%0A%09%09return %22Y%22.equals(dbData);%0D%0A%09%7D%0D%0A%0D%0A%7D

create converter for the user entity