Package be.demmel.jgws.entities

Examples of be.demmel.jgws.entities.Group


 
  @Test
  public void injectGroups() {
    EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("jgws");
   
    persist(entityManagerFactory, new Group(1, "Banned", "Bnd", (byte)4));
    persist(entityManagerFactory, new Group(2, "Guest", "Gst", (byte)3));
    persist(entityManagerFactory, new Group(3, "Member", "", (byte)3));
    persist(entityManagerFactory, new Group(4, "Moderator", "Mod", (byte)10));
    persist(entityManagerFactory, new Group(5, "Admin", "Adm", (byte)5));
    persist(entityManagerFactory, new Group(6, "HeadAdmin", "[God]", (byte)5));
 
  }
View Full Code Here


      return null;
    }

    int groupId = account.getGroupId();

    Group group = this.getGroupByGroupId(groupId);
    if (group == null) {
      return null;
    }

    String groupPrefix = group.getGroupPrefix();
    byte groupChatColor = group.getGroupChatColor();

    CharacterData characterData = new CharacterData();
    characterData.setCharID(charId);
    characterData.setName(charName);
View Full Code Here

TOP

Related Classes of be.demmel.jgws.entities.Group

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.