1007a1008,1018
>         deleteObjects(Collections.singletonList(anObject));
>     }
> 
>     public void deleteObjects(Collection aList) {
> 
>         Iterator listIter = new ArrayList(aList).iterator();
> 
>         while (listIter.hasNext()) {
> 
>             DataObject anObject = (DataObject) listIter.next();
> 
1029,1031c1040
<         int newState = (oldState == PersistenceState.NEW)
<                 ? PersistenceState.TRANSIENT
<                 : PersistenceState.DELETED;
---
>             int newState = (oldState == PersistenceState.NEW) ? PersistenceState.TRANSIENT : PersistenceState.DELETED;
1040,1041c1049
<             boolean processFlattened = relationship.isFlattened()
<                     && relationship.isToDependentEntity();
---
>                 boolean processFlattened = relationship.isFlattened() && relationship.isToDependentEntity();
1058,1061c1066,1067
<             }
<             else {
<                 Object relatedObject = anObject
<                         .readNestedProperty(relationship.getName());
---
>                 } else {
>                     Object relatedObject = anObject.readNestedProperty(relationship.getName());
1078,1086c1084,1086
<                         + getEntityResolver().lookupObjEntity(anObject).getName()
<                         + " because it has "
<                         + relatedObjects.size()
<                         + " object"
<                         + (relatedObjects.size() > 1 ? "s" : "")
<                         + "in it's "
<                         + relationship.getName()
<                         + " relationship"
<                         + " and this relationship has DENY "
---
>                             + getEntityResolver().lookupObjEntity(anObject).getName() + " because it has "
>                             + relatedObjects.size() + " object" + (relatedObjects.size() > 1 ? "s" : "") + "in it's "
>                             + relationship.getName() + " relationship" + " and this relationship has DENY "
1107,1108c1107
<                     ObjRelationship inverseRelationship = relationship
<                             .getReverseRelationship();
---
>                     ObjRelationship inverseRelationship = relationship.getReverseRelationship();
1119,1121c1118
<                             relatedObject.removeToManyTarget(inverseRelationship
<                                     .getName(), anObject, true);
<                         }
---
>                             relatedObject.removeToManyTarget(inverseRelationship.getName(), anObject, true);
1123c1120
<                     else {
---
>                     } else {
1129,1132c1126
<                             relatedObject.setToOneTarget(
<                                     inverseRelationship.getName(),
<                                     null,
<                                     true);
---
>                             relatedObject.setToOneTarget(inverseRelationship.getName(), null, true);
1138c1132
<                     //Delete all related objects
---
>                     // Delete all related objects
1151,1152c1145
<                     throw new CayenneRuntimeException("Unknown type of delete rule "
<                             + relationship.getDeleteRule());
---
>                     throw new CayenneRuntimeException("Unknown type of delete rule " + relationship.getDeleteRule());
1161a1155
>     }
1164,1166c1158,1159
<      * Refetches object data for ObjectId. This method is used internally by Cayenne to
<      * resolve objects in state <code>PersistenceState.HOLLOW</code>. It can also be
<      * used to refresh certain objects.
---
>      * Refetches object data for ObjectId. This method is used internally by Cayenne to resolve objects in state
>      * <code>PersistenceState.HOLLOW</code>. It can also be used to refresh certain objects.
1168,1169c1161,1162
<      *..hrows CayenneRuntimeException if object id doesn't match any records, or if there
<      *             is more than one object is fetched.
---
>      *..hrows CayenneRuntimeException
>      *             if object id doesn't match any records, or if there is more than one object is fetched.

