Skip to content

Commit

Permalink
logging drools rules deleted by command
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio.torre committed Dec 14, 2023
1 parent 9555cd6 commit 2c8e2a9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ public Mono<DeleteResult> removeById(I id) {
return mongoOperations
.remove(getIdQuery(id), entityInformation.getJavaType(), entityInformation.getCollectionName());
}

@SuppressWarnings("squid:S2177") // suppressing overriding private super method
private Query getIdQuery(Object id) {
return new Query(getIdCriteria(id));
}

@SuppressWarnings("squid:S2177") // suppressing overriding private super method
private Criteria getIdCriteria(Object id) {
return where(entityInformation.getIdAttribute()).is(id);
}
Expand Down

0 comments on commit 2c8e2a9

Please sign in to comment.