illegalOrphanMessages = new ArrayList<String>();
}
illegalOrphanMessages.add("This Profession (" + profession + ") cannot be destroyed since the Attribute " + attributeCollectionOrphanCheckAttribute + " in its attributeCollection field has a non-nullable profession field.");
}
if (illegalOrphanMessages != null) {
throw new IllegalOrphanException(illegalOrphanMessages);
}
Collection<Character> characterCollection = profession.getCharacterCollection();
for (Character characterCollectionCharacter : characterCollection) {
characterCollectionCharacter.getProfessionCollection().remove(profession);
characterCollectionCharacter = em.merge(characterCollectionCharacter);