@Override public String search() { Bomba bomba = new Bomba(); if (StringUtils.hasText(numeroPesquisa)) { bomba.setNumero(Integer.valueOf(numeroPesquisa)); } bomba.setPosto(posto); bomba.setCombustivel(combustivel); this.entities = bombaService.pesquisar(bomba); setCurrentBean(currentBeanName()); setCurrentState(SEARCH); return SUCCESS; }
@Override protected Integer retrieveEntityId(Bomba entity) { return entity.getId(); }