Package daoI

Examples of daoI.IProiectDao.saveOrUpdate()


    public Resolution submit() {
        IProiectDao proiectDao = new ProiectDao();
        int idBeneficiar = ((Beneficiar) getContext().getRequest().getSession().getAttribute("beneficiarProiect")).getIdBeneficiar();
        int idGeolog = getIdGeologLogat();
        Proiect proiect = new Proiect(getNumeProiect(), idGeolog, idBeneficiar);
        proiectDao.saveOrUpdate(proiect);
        Proiect p = proiectDao.getUltimulProiectAdaugat(idGeolog);
        getContext().getRequest().getSession(true).setAttribute("proiectInLucru", proiectDao.getUltimulProiectAdaugat(idGeolog));
        return new ForwardResolution("/WEB-INF/jsp/repartizareAmplasamente.jsp");
    }
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.