title: JPA String to boolean when reading from database
body: <p>In the database we store a value which is "Y" or "N" and is of type varchar. However, in my model class for example say in "Employee" I have a field corresponding to that value which is: a boolean for example boolean isManager. </p>
  
  <p>If I make the field in the class as String it all works fine. However, I want to keep it boolean. What can be done here? Is there a way in JPA to tell it to convert to 1 or 0 or true or false based on "Y" and "N" values?</p>