Skip to content

Commit

Permalink
use getIdentity instead of ID
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Jun 8, 2020
1 parent fd8d35d commit ce26223
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public abstract class AbstractPatternBasedMethod implements MethodCandidate {
private static final String DELETE = "delete";
private static final String UPDATE = "update";
private static final String VOID = "void";
private static final String ID = "id";
private static final Join.Type DEFAULT_JOIN_TYPE = Join.Type.FETCH;
protected final Pattern pattern;

Expand Down Expand Up @@ -518,7 +517,7 @@ private boolean attemptProjection(@NonNull MethodMatchContext matchContext,
.findFirst();
if (associationOptional.isPresent()) {
association = matchContext.getEntity(associationOptional.get().getType());
pp = association.getIdOrVersionPropertyByName(ID);
pp = association.getIdentity();
}
}

Expand Down

0 comments on commit ce26223

Please sign in to comment.