Package jpa.controllers.exceptions

Examples of jpa.controllers.exceptions.IllegalOrphanException


                }
                illegalOrphanMessages.add("The Comments " + commentsOrphanCheck + " already has an item of type Commentrates whose comments column cannot be null. Please make another selection for the comments field.");
            }
        }
        if (illegalOrphanMessages != null) {
            throw new IllegalOrphanException(illegalOrphanMessages);
        }
        EntityManager em = null;
        try {
            em = getEntityManager();
            em.getTransaction().begin();
View Full Code Here


                    }
                    illegalOrphanMessages.add("The Comments " + commentsNew + " already has an item of type Commentrates whose comments column cannot be null. Please make another selection for the comments field.");
                }
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            if (commentsNew != null) {
                commentsNew = em.getReference(commentsNew.getClass(), commentsNew.getId());
                commentrates.setComments(commentsNew);
            }
View Full Code Here

                    }
                    illegalOrphanMessages.add("You must retain Tagrates " + tagratesListOldTagrates + " since its courseTagId field is not nullable.");
                }
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            if (courseIdNew != null) {
                courseIdNew = em.getReference(courseIdNew.getClass(), courseIdNew.getCourseId());
                coursetag.setCourseId(courseIdNew);
            }
View Full Code Here

                    illegalOrphanMessages = new ArrayList<String>();
                }
                illegalOrphanMessages.add("This Coursetag (" + coursetag + ") cannot be destroyed since the Tagrates " + tagratesListOrphanCheckTagrates + " in its tagratesList field has a non-nullable courseTagId field.");
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            Courses courseId = coursetag.getCourseId();
            if (courseId != null) {
                courseId.getCoursetagList().remove(coursetag);
                courseId = em.merge(courseId);
View Full Code Here

                    }
                    illegalOrphanMessages.add("You must retain Tagcorrelations " + tagcorrelationsList1OldTagcorrelations + " since its mainTagId field is not nullable.");
                }
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            List<Coursetag> attachedCoursetagListNew = new ArrayList<Coursetag>();
            for (Coursetag coursetagListNewCoursetagToAttach : coursetagListNew) {
                coursetagListNewCoursetagToAttach = em.getReference(coursetagListNewCoursetagToAttach.getClass(), coursetagListNewCoursetagToAttach.getId());
                attachedCoursetagListNew.add(coursetagListNewCoursetagToAttach);
View Full Code Here

                    illegalOrphanMessages = new ArrayList<String>();
                }
                illegalOrphanMessages.add("This Tag (" + tag + ") cannot be destroyed since the Tagcorrelations " + tagcorrelationsList1OrphanCheckTagcorrelations + " in its tagcorrelationsList1 field has a non-nullable mainTagId field.");
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            em.remove(tag);
            em.getTransaction().commit();
        } finally {
            if (em != null) {
View Full Code Here

TOP

Related Classes of jpa.controllers.exceptions.IllegalOrphanException

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.