Package dao

Examples of dao.StantaDao.saveOrUpdate()


        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = new Stanta(proba, Float.parseFloat(getRand1Coloana2()), Float.parseFloat(getRand2Coloana2()), null, getStantaInput(), Float.parseFloat(getTaraInput()), Float.parseFloat(getDiametruInput()), Float.parseFloat(getInaltimeInput()));
        Stanta stantaAuxiliar = stantaDao.getStantaByIDProba(proba.getIdProba());
        if (stantaAuxiliar == null) {
            stantaDao.saveOrUpdate(stanta);
        } else {
            stanta.setIdStanta(stantaAuxiliar.getIdStanta());
            stantaDao.saveOrUpdate(stanta);
        }
View Full Code Here


        Stanta stantaAuxiliar = stantaDao.getStantaByIDProba(proba.getIdProba());
        if (stantaAuxiliar == null) {
            stantaDao.saveOrUpdate(stanta);
        } else {
            stanta.setIdStanta(stantaAuxiliar.getIdStanta());
            stantaDao.saveOrUpdate(stanta);
        }

        Stanta stantaDinBd = stantaDao.getStantaByIDProba(proba.getIdProba());
        metStantei = new MetodaStantei();
        metStantei.setDensitateSchelet(getDensitateSchelet());
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.