Beispiel #1
0
 @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;
 }
Beispiel #2
0
 @Override
 protected Integer retrieveEntityId(Bomba entity) {
   return entity.getId();
 }