illegalOrphanMessages = new ArrayList<String>();
}
illegalOrphanMessages.add("This Inventory (" + inventory + ") cannot be destroyed since the Storeditem " + storeditemCollectionOrphanCheckStoreditem + " in its storeditemCollection field has a non-nullable inventory field.");
}
if (illegalOrphanMessages != null) {
throw new IllegalOrphanException(illegalOrphanMessages);
}
Collection<Account> accountCollection = inventory.getAccountCollection();
for (Account accountCollectionAccount : accountCollection) {
accountCollectionAccount.setMaterialStorage(null);
accountCollectionAccount = em.merge(accountCollectionAccount);