public String action_create() { try { entity = new AnexosRespuesta(); Long idAnxResp = FacesUtils.checkLong(txtIdAnxResp); entity.setAdjuntoDocumento(FacesUtils.checkString(txtAdjuntoDocumento)); entity.setDocumentoReal(FacesUtils.checkBlob(txtDocumentoReal)); entity.setEstadoRegistro(FacesUtils.checkString(txtEstadoRegistro)); entity.setFechaCreacion(FacesUtils.checkDate(txtFechaCreacion)); entity.setIdAnxResp(idAnxResp); entity.setNombreAnexo(FacesUtils.checkString(txtNombreAnexo).toLowerCase()); entity.setNombreBusqueda(FacesUtils.checkString(txtNombreBusqueda).toLowerCase()); entity.setUsuarioCreador(FacesUtils.checkString(txtUsuarioCreador).toLowerCase()); entity.setAnexosPqr( (FacesUtils.checkLong(txtIdAnexoPqr_AnexosPqr) != null) ? businessDelegatorView.getAnexosPqr(FacesUtils.checkLong(txtIdAnexoPqr_AnexosPqr)) : null); entity.setRespuestaSol( (FacesUtils.checkLong(txtIdRespSol_RespuestaSol) != null) ? businessDelegatorView.getRespuestaSol( FacesUtils.checkLong(txtIdRespSol_RespuestaSol)) : null); businessDelegatorView.saveAnexosRespuesta(entity); FacesUtils.addInfoMessage("El anexo se guardó exitosamente"); action_clear(); } catch (Exception e) { entity = null; FacesUtils.addErrorMessage(e.getMessage()); } return ""; }