Hi,
I've been trying to retro-fit an existing app using hibernate+annotations as a learning exercise (though I feel the d/b structure is going to bite me...). Anyhow, I'm having problems with boolean values, which are stored in the database in single character columns ("Y"/"N").
When I run the code, ResultSet's getBoolean is called and I end up with the (expected) exception:
java.lang.NumberFormatException: For input string: "N"
You can do this in the XML mapping with type="yes_no" for the property, but I can't seem to find an annotations equivalent. Is there a way to do this using annotations?
thanks,
t.
|