*/
@Override
public Object getAsObject(FacesContext context, UIComponent component,
String value) {
System.out.println(" ============ getAsObject ===============");
UserRoles role = new UserRoles();
for (br.facet.tcc.enums.UserRoles userRoles : br.facet.tcc.enums.UserRoles
.values()) {
if (userRoles.getDescricao().equals(value)) {
role.setId(userRoles.getId());
role.setUserRole(userRoles);
}
}
return role;
}