Package com.moreemrecife.dto

Examples of com.moreemrecife.dto.UserTO


            //            ctx = new InitialContext();
            //            EntityManager entityManager = (EntityManager) ctx.lookup("RealEstateJPA");
            EntityManagerHelper.set(entityManager);

            User u = AccessControlDao.selectUser(login);
            UserTO to = convertUserTO(u);

            return to;
        } catch (Exception e) {
            logger.log(Level.SEVERE, "Error on call to retrieveUserInfo()", e);
        }
View Full Code Here


     * Camada view n�o pode acessar entities.
     * @param dao Objeto da camada de persist�ncia
     * @return objeto convertido
     */
    public static UserTO convertUserTO(User dao) {
        UserTO to = new UserTO();

        to.setEmail(dao.getEmail());
        to.setId(dao.getId());
        to.setLastname(dao.getLastname());
        to.setLogin(dao.getLogin());
        to.setName(dao.getName());
        to.setGroup(convertGroupTO(dao.getGroup()));

        return to;
    }
View Full Code Here

TOP

Related Classes of com.moreemrecife.dto.UserTO

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.