Package org.objectweb.speedo.pobjects.inheritance.query

Examples of org.objectweb.speedo.pobjects.inheritance.query.GroupUser


        //creation of mailinglists
        for(int i=0; i<NB_GROUP; i++) {
            MailingList ml = new MailingList("mailinglist_" + i);
            Collection users = ml.getUsers();
            for(int j=0; j<NB_USER_PER_GROUP; j++) {
                GroupUser u = new GroupUser("user_ml" + i + "_u" + j);
                users.add(u);
            }
            Collection moderators = ml.getModerators();
            for(int j=0; j<NB_USER_PER_GROUP; j++) {
                GroupModerator gm = new GroupModerator("moderator_ml" + i,  "mod" + j);
View Full Code Here


        users.add(commonUser);
        pm.makePersistent(ng0);
        //add newsgroup_1 -> [user_1]
        NewsGroup ng1 = new NewsGroup("newsgroup_1");
        users = ng1.getUsers();
        users.add(new GroupUser("user_1"));
        pm.makePersistent(ng1);
        pm.currentTransaction().commit();
        pm.close();
    }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.pobjects.inheritance.query.GroupUser

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.