Package br.com.granja.dominio

Examples of br.com.granja.dominio.ItensTipoRacao


    private boolean alteracaoItem;
   
    @Inject
    public TiporacaoBean(TiporacaoService service) {
        super(service);
        item = new ItensTipoRacao();
        this.alteracaoItem = false;
    }
View Full Code Here


       
        getService().validaItem(item, getEntity().getItens());
      if(!isAlteracaoItem())
        getEntity().getItens().add(item);
         
        item = new ItensTipoRacao();
          this.alteracaoItem = false;
      }catch(ServiceBusinessException e){
        addError(e.getMessage());
      }
    }
View Full Code Here

     *
     */
    private static final long serialVersionUID = -6143796218462545262L;
   
    public List<ItensTipoRacao> findByTipoRacao(Tiporacao tiporacao){
      ItensTipoRacao i = new ItensTipoRacao();
      i.setAtivo(true);
      i.setTipoRacao(tiporacao);
     
      return findByAttributes(i,0,0,"insumo.descricao",true);
    }
View Full Code Here

      return findByAttributes(i,0,0,"insumo.descricao",true);
    }
   

    public Integer countTipoRacaoByInsumo(Insumo insumo){
      ItensTipoRacao c = new ItensTipoRacao();
      c.setInsumo(insumo);
      c.setAtivo(true);
     
      return countByAttributes(c);
    }
View Full Code Here

TOP

Related Classes of br.com.granja.dominio.ItensTipoRacao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.