Package br.gov.serpro.ouvidoria.dao.hibernate

Examples of br.gov.serpro.ouvidoria.dao.hibernate.HibernateDaoFactory.create()


            }
           
            Collection tipoMsg = orgao.getListaTipoMensagem();

            // Qual classe representa ouvidorias ?
            request.setAttribute("cas_ouvidorias", daoFactory.create(
                    Instituicao.class).list());

            request.setAttribute("cas_assuntos", assuntos);

            request.setAttribute("cas_tipos_mensagem", tipoMsg);
View Full Code Here


            request.setAttribute("cas_assuntos", assuntos);

            request.setAttribute("cas_tipos_mensagem", tipoMsg);

            request.setAttribute("cas_protocolos", daoFactory.create(
                    Protocolo.class).list());
           
            request.setAttribute("cas_situacao_mensagem", daoFactory.create(
                    EstadoAcionamento.class).list());
View Full Code Here

            request.setAttribute("cas_tipos_mensagem", tipoMsg);

            request.setAttribute("cas_protocolos", daoFactory.create(
                    Protocolo.class).list());
           
            request.setAttribute("cas_situacao_mensagem", daoFactory.create(
                    EstadoAcionamento.class).list());

        } catch (Throwable t) {
            errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                    "error.solucao.excecao"));
View Full Code Here

   * @return
   */
  public Collection listaMeiosEnvioRespostaOrgao(Long idOrgao) {

    DaoFactory daoFactory = new HibernateDaoFactory();
    orgaoDao = daoFactory.create(Orgao.class);
    Collection lstMeiosEnvioResp = new ArrayList();

    try {
      Orgao orgao = this.get(idOrgao);
      if (orgao != null) {
View Full Code Here

   * @throws DaoException
   */
  public Funcionario getOuvidorOrgao(final Orgao orgao) throws DaoException {

    final DaoFactory daoFactory = new HibernateDaoFactory();
    Dao funcionarioDao = daoFactory.create(Funcionario.class);

    Funcionario funcionario = new Funcionario();

    String sql = " select f from Orgao o, Funcionario as f "
        + " where o.id = " + orgao.getId() + " and f.instituicao = "
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.