Package gwlpr.database.jpa.exceptions

Examples of gwlpr.database.jpa.exceptions.IllegalOrphanException


                    }
                    illegalOrphanMessages.add("You must retain Attributepoint " + attributepointCollectionOldAttributepoint + " since its attribute field is not nullable.");
                }
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            if (professionNew != null) {
                professionNew = em.getReference(professionNew.getClass(), professionNew.getId());
                attribute.setProfession(professionNew);
            }
View Full Code Here


                    illegalOrphanMessages = new ArrayList<String>();
                }
                illegalOrphanMessages.add("This Attribute (" + attribute + ") cannot be destroyed since the Attributepoint " + attributepointCollectionOrphanCheckAttributepoint + " in its attributepointCollection field has a non-nullable attribute field.");
            }
            if (illegalOrphanMessages != null) {
                throw new IllegalOrphanException(illegalOrphanMessages);
            }
            Profession profession = attribute.getProfession();
            if (profession != null) {
                profession.getAttributeCollection().remove(attribute);
                profession = em.merge(profession);
View Full Code Here

TOP

Related Classes of gwlpr.database.jpa.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.