If an entity has the property defined as
private String noWstManagedFlg;
and the database is constraint is set to enforce a ‘Y’ or ‘N’. Is there a built in Y N to boolean converter I can use with h:selectBooleanCheckbox? Or will I need to add my own converter and/or property on my entity that returns a boolean?
<h:selectBooleanCheckbox value="#{entity.noWstManagedFlg}" />
There is no such converter in Seam, but if your JPA implementation is Hibernate, you can map that property with ‘
yes_no‘ type and have it boolean in the entity.