Hi,
I've just started using JPA, and would appreciate it if anyone could help with the following question:
What is the recommended way to define a conversion rule between my database data, and my
Java data ?
For example, say my (badly designed) database stores
string values of "YES" and "NO", which I'd like to convert to java boolean :
What is the most recommended way to do the conversion ?
Thanks
![](https://coderanch.com/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif)
[ September 30, 2007: Message edited by: Sol Mayer-Orn ]