Package au.com.motodetail.base.entity

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


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

        //retrieve basicEntity from db to merge
        BasicTypeEntity basicEntityTypeTemp = basicEntityTypeDao.retrieve(basicEntityType.getId());

        //modify here
        basicEntityTypeTemp.setEntities(basicEntityType.getEntities());
        basicEntityTypeTemp.setType(basicEntityType.getType());

        //commit changes
        basicEntityTypeDao.update(basicEntityTypeTemp);

        //commit transaction
View Full Code Here


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

TOP

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

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.