Package gwlpr.database.entities

Examples of gwlpr.database.entities.AttributepointPK


        return emf.createEntityManager();
    }

    public void create(Attributepoint attributepoint) throws PreexistingEntityException, Exception {
        if (attributepoint.getAttributepointPK() == null) {
            attributepoint.setAttributepointPK(new AttributepointPK());
        }
        attributepoint.getAttributepointPK().setCharacterID(attributepoint.getCharacter().getId());
        attributepoint.getAttributepointPK().setAttributeID(attributepoint.getAttribute().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) {
                AttributepointPK id = attributepoint.getAttributepointPK();
                if (findAttributepoint(id) == null) {
                    throw new NonexistentEntityException("The attributepoint with id " + id + " no longer exists.");
                }
            }
            throw ex;
View Full Code Here

TOP

Related Classes of gwlpr.database.entities.AttributepointPK

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.