Package es.ua.dccia.datos

Examples of es.ua.dccia.datos.UsuarioDao.create()


        EntityManager em = PersistenceManager.getInstance().createEntityManager();
        try {
            em.getTransaction().begin();
            if (this.getUsuario(u.getLogin()) == null) {
                UsuarioDao uDao = new UsuarioDao(em);
                uDao.create(u);
                //copiar imagen de perfil por defecto con el login del usuario
                ImagenService.getInstance().copiaPerfilDefecto(u.getLogin());
            } else {
                throw new MueveteException("El usuario " + u.getLogin() + " ya existe");
            }
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.