Package gwlpr.database.entities

Examples of gwlpr.database.entities.SpawnpointPK


        return emf.createEntityManager();
    }

    public void create(Spawnpoint spawnpoint) throws PreexistingEntityException, Exception {
        if (spawnpoint.getSpawnpointPK() == null) {
            spawnpoint.setSpawnpointPK(new SpawnpointPK());
        }
        spawnpoint.getSpawnpointPK().setMapID(spawnpoint.getMap().getId());
        EntityManager em = null;
        try {
            em = getEntityManager();
View Full Code Here


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

TOP

Related Classes of gwlpr.database.entities.SpawnpointPK

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.