Package au.com.motodetail.base.entity

Examples of au.com.motodetail.base.entity.BasicMomentIntervalEntity


        BaseUtil.writeLog("BasicMomentIntervalServiceImpl::update ID: " + basicMomentInterval.getId());
        //start transaction
        JPAUtil.createTransactionalEntityManager();

        //retrieve basicEntity from db to merge
        BasicMomentIntervalEntity basicMomentIntervalTemp = basicMomentIntervalDao.retrieve(basicMomentInterval.getId());

        //modify here
        basicMomentIntervalTemp.setEndDate(basicMomentInterval.getEndDate());
        basicMomentIntervalTemp.setExpire(basicMomentInterval.getExpire());
        basicMomentIntervalTemp.setRoles(basicMomentInterval.getRoles());
        basicMomentIntervalTemp.setStartDate(basicMomentInterval.getStartDate());

        //commit changes
        basicMomentIntervalDao.update(basicMomentIntervalTemp);

        //commit transaction
View Full Code Here


    @Override
    public BasicMomentIntervalEntity getById(Long id)
    {
        BaseUtil.writeLog("BasicMomentIntervalServiceImpl::getById ID: " + id);
        JPAUtil.createEntityManager();
        BasicMomentIntervalEntity result =  basicMomentIntervalDao.retrieve(id);
        JPAUtil.closeEntityManager();
        return result;
    }
View Full Code Here

TOP

Related Classes of au.com.motodetail.base.entity.BasicMomentIntervalEntity

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.