Package gwlpr.database.entities

Examples of gwlpr.database.entities.EquippedSkillPK


        return emf.createEntityManager();
    }

    public void create(EquippedSkill equippedSkill) throws PreexistingEntityException, Exception {
        if (equippedSkill.getEquippedSkillPK() == null) {
            equippedSkill.setEquippedSkillPK(new EquippedSkillPK());
        }
        equippedSkill.getEquippedSkillPK().setSkillID(equippedSkill.getSkill().getId());
        equippedSkill.getEquippedSkillPK().setCharacterID(equippedSkill.getCharacter().getId());
        EntityManager em = null;
        try {
View Full Code Here


            }
            em.getTransaction().commit();
        } catch (Exception ex) {
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                EquippedSkillPK id = equippedSkill.getEquippedSkillPK();
                if (findEquippedSkill(id) == null) {
                    throw new NonexistentEntityException("The equippedSkill with id " + id + " no longer exists.");
                }
            }
            throw ex;
View Full Code Here

TOP

Related Classes of gwlpr.database.entities.EquippedSkillPK

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.