Package org.ita.capes.programa

Examples of org.ita.capes.programa.Programa


           for(int m=1; m< listProgramaOptions.size(); m++){
             System.out.println("m"+m);
             select.setSelectedAttribute(Integer.toString(m), true);
             System.out.println("numPrograma"+m);
             System.out.println("programa"+listProgramaOptions.get(m).asText());
             corrente = new Programa();
             corrente.setNumEstado(i);
             String estado = listEstadoOptions.get(i).asText();
             corrente.setEstado(estado);
             corrente.setNumAreaAvaliacao(j);
             String areaAvaliacao = listAreaOptions.get(j).asText();
View Full Code Here


  @Override
  public void delete(int id) {
    EntityManager em = JPAUtil.getEntityManager();
    EntityTransaction t = em.getTransaction();
    t.begin();
    Programa c =em.find(Programa.class, id);
    em.remove(c);
    t.commit();
    em.close();
  }
View Full Code Here

  }

  @Override
  public Programa getById(int id) {
    EntityManager em = JPAUtil.getEntityManager();
    Programa c = em.find(Programa.class, id);
    em.close();
    return c;
  }
View Full Code Here

TOP

Related Classes of org.ita.capes.programa.Programa

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.