Skip to content

Commit

Permalink
Merge pull request #125 from apache/ISIS-1985-mm-validation
Browse files Browse the repository at this point in the history
ISIS-1985: fixes mm validation
  • Loading branch information
danhaywood committed Sep 13, 2018
2 parents 4ed6db4 + 2fbcbf7 commit d6160a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void validate(ObjectSpecification objectSpec, ValidationFailures validat

// skip checks if annotated with JDO @NotPersistent
if(association.containsDoOpFacet(JdoNotPersistentFacet.class)) {
return;
continue;
}

validateBigDecimalValueFacet(association, validationFailures);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private void validate(ObjectSpecification objectSpec, ValidationFailures validat

// skip checks if annotated with JDO @NotPersistent
if(association.containsDoOpFacet(JdoNotPersistentFacet.class)) {
return;
continue;
}

validateMandatoryFacet(association, validationFailures);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void validate(ObjectSpecification objectSpec, ValidationFailures validat

// skip checks if annotated with JDO @NotPersistent
if(association.containsDoOpFacet(JdoNotPersistentFacet.class)) {
return;
continue;
}

MaxLengthFacet facet = association.getFacet(MaxLengthFacet.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void enlistCreated(final ObjectAdapter adapter) {
}
if(enlistedObjectProperties.containsKey(aap)) {
// already enlisted, so ignore
return;
continue;
}
PreAndPostValues papv = PreAndPostValues.pre(IsisTransaction.Placeholder.NEW);
enlistedObjectProperties.put(aap, papv);
Expand Down Expand Up @@ -174,7 +174,7 @@ public void enlistDeleting(final ObjectAdapter adapter) {
}
if(enlistedObjectProperties.containsKey(aap)) {
// already enlisted, so ignore
return;
continue;
}
PreAndPostValues papv = PreAndPostValues.pre(aap.getPropertyValue());
enlistedObjectProperties.put(aap, papv);
Expand Down

0 comments on commit d6160a7

Please sign in to comment.