Package com.impetus.client.twitter.entities

Examples of com.impetus.client.twitter.entities.RoleMongo


     * Test association.
     */
    @Test
    public void testPersist()
    {
        RoleMongo rol = new RoleMongo();
        rol.setRolId(1);
        rol.setName("Administrador");
        User u = new User();
        u.setAge(15);
        u.setEmail("usuario1@infos.com");
        u.setName("usuario1");
        u.setUserId(1);
        u.setLastName("apellido1");
        User u2 = new User();
        u2.setAge(17);
        u2.setEmail("usuario2@infos.com");
        u2.setName("usuario2");
        u2.setUserId(2);
        u2.setLastName("apellido2");
        u.setUserRol(rol);
        u2.setUserRol(rol);
        List<User> users = new ArrayList<User>();
        users.add(u);
        users.add(u2);
        rol.setSegUsuarioList(users);
        em.persist(rol);

    }
View Full Code Here


     * Tear down.
     */
    @After
    public void tearDown()
    {
        RoleMongo rol = em.find(RoleMongo.class, 1);
        if (rol != null)
        {
            em.remove(rol);
        }

View Full Code Here

TOP

Related Classes of com.impetus.client.twitter.entities.RoleMongo

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.