title: Is it possible to do type conversion (from boolean to yes_no) in pure JPA?
body: <p>There is an annotation in Hibernate that can persist boolean types as 'Y'/'N' in the database. </p>
  
  <p><a href="https://stackoverflow.com/questions/1154833/configure-hibernate-using-jpa-to-store-y-n-for-type-boolean-instead-of-0-1">https://stackoverflow.com/questions/1154833/configure-hibernate-using-jpa-to-store-y-n-for-type-boole
  an-instead-of-0-1</a></p>
  
  <p>However if I don't want to bind to Hibernate is there a way to do it in pure JPA without using getters/setters?</p>