return emf.createEntityManager();
}
public void create(Factionstat factionstat) throws PreexistingEntityException, Exception {
if (factionstat.getFactionstatPK() == null) {
factionstat.setFactionstatPK(new FactionstatPK());
}
factionstat.getFactionstatPK().setType(factionstat.getFaction().getId());
factionstat.getFactionstatPK().setAccountID(factionstat.getAccount().getId());
EntityManager em = null;
try {