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

Examples of br.gov.serpro.ouvidoria.dao.hibernate.HibernateDaoFactory


   * @param idOrgao
   * @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


  }

  public static String getQuery(HttpServletRequest request) {

    boolean detail = false;
    final DaoFactory daoFactory = new HibernateDaoFactory();
    if ("d".equalsIgnoreCase(request.getParameter("r_modo_exibicao")))
      detail = true;

    OrgaoCtrl orgaoCtrl = new OrgaoCtrl(daoFactory);
View Full Code Here

   * @return funcionario
   * @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

  }

  public static String getQuery(HttpServletRequest request) {

    boolean detail = false;
    final DaoFactory daoFactory = new HibernateDaoFactory();

    if ("d".equalsIgnoreCase(request.getParameter("r_modo_exibicao")))
      detail = true;

    OrgaoCtrl orgaoCtrl = new OrgaoCtrl(daoFactory);
View Full Code Here

TOP

Related Classes of br.gov.serpro.ouvidoria.dao.hibernate.HibernateDaoFactory

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.