This helped a bunch today!
Scenario:
- using JSF with some check boxes.
- Check boxes are stored in the bean as a Boolean
- Database field is a String (1 character) and stored as “Y” or “N”
Use Hibernate’s type="yes_no" for the property to convert the Boolean value to a String and back again.
No comments:
Post a Comment