Skip to content

Commit

Permalink
feat: remove ast log in join, joinfetch resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuho committed Apr 22, 2022
1 parent 6f09c12 commit 3f8d579
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ repository.findAll(spec);
將 Package `tw.com.softleader.data.jpa.spec` 設定為 *debug*, 會在物件轉換成 Spec 的過程中印出更多資訊, 可以有效的幫助查找問題, 如:

```
t.c.softleader.data.jpa.spec.SpecMapper : --- Spec AST ---
DEBUG 20297 --- [ main] t.c.softleader.data.jpa.spec.SpecMapper : --- Spec AST ---
+-[CustomerCriteria]: my.package.CustomerCriteria
| +-[CustomerCriteria.firstname]: @Spec(value=Equals, path=, not=false) -> Equals[path=name, value=matt]
| +-[CustomerCriteria.address]: my.package.AddressCriteria (NestedSpecificationResolver)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,14 @@ Specification<Object> newJoinFetch(@NonNull JoinFetch def) {
def.joinType(),
def.distinct());
}

@Override
public void preVisit(@lombok.NonNull SpecInvocation node) {
// 這隻不印
}

@Override
public void postVisit(@lombok.NonNull SpecInvocation node, Specification<Object> resolved) {
// 這隻不印
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,14 @@ Specification<Object> newJoin(@NonNull Context context, @NonNull Join def) {
def.joinType(),
def.distinct());
}

@Override
public void preVisit(@lombok.NonNull SpecInvocation node) {
// 這隻不印
}

@Override
public void postVisit(@lombok.NonNull SpecInvocation node, Specification<Object> resolved) {
// 這隻不印
}
}

0 comments on commit 3f8d579

Please sign in to comment.