Package dao

Examples of dao.BeneficiarDao.saveOrUpdate()


            } else if (!isNumeric(cnp)) {
                setCnpIncorect(true);
                return new ForwardResolution("/WEB-INF/jsp/adaugaBeneficiar.jsp");
            }
            Beneficiar beneficiar = new Beneficiar(nume, cnp, mentiuni, null);
            beneficiarDao.saveOrUpdate(beneficiar);
            Beneficiar bAux = beneficiarDao.getBeneficiarCnp(cnp);
            int idGeolog = getIdGeologLogat();
            IGeologBeneficiarDao geologBeneficiarDao = new GeologBeneficiarDao();
            geologBeneficiarDao.saveOrUpdate(new GeologBeneficiar(idGeolog, bAux.getIdBeneficiar()));
            setBeneficiarAdaugat(true);
View Full Code Here


                } else if (!isNumeric(cnp)) {
                    setCnpIncorect(true);
                    return new ForwardResolution("/WEB-INF/jsp/adaugaBeneficiar.jsp");
                }
                Beneficiar beneficiar = new Beneficiar(nume, cnp, mentiuni, null);
                beneficiarDao.saveOrUpdate(beneficiar);
                Beneficiar bAux = beneficiarDao.getBeneficiarCnp(cnp);
                int idGeolog = getIdGeologLogat();
                IGeologBeneficiarDao geologBeneficiarDao = new GeologBeneficiarDao();
                geologBeneficiarDao.saveOrUpdate(new GeologBeneficiar(idGeolog, bAux.getIdBeneficiar()));
                getContext().getRequest().getSession(true).setAttribute("beneficiarProiect", bAux);
View Full Code Here

        beneficiar.setIdBeneficiar(Integer.parseInt(getBeneficiarFilter()));
        beneficiar.setCuiBeneficiar(getCnpEditare());
        beneficiar.setMentiuniBeneficiar(getMentiuniEditare());
        String numeB = beneficiarDao.getBeneficiarByID(Integer.parseInt(getBeneficiarFilter())).getNumeBeneficiar();
        beneficiar.setNumeBeneficiar(numeB);
        beneficiarDao.saveOrUpdate(beneficiar);
        setBeneficiarEditat(true);
        return new ForwardResolution("/WEB-INF/jsp/editareBeneficiar.jsp");
    }

    public Resolution reset() {
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.