-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
join to be part of post to avoid challenges of request params and add…
…ress security.
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/com/homihq/db2rest/rest/read/v2/dto/JoinDetail.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.homihq.db2rest.rest.read.v2.dto; | ||
|
||
import java.util.List; | ||
|
||
|
||
public class JoinDetail { | ||
|
||
private String table; | ||
|
||
private List<String> columnNames; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/homihq/db2rest/rest/read/v2/processor/JoinProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.homihq.db2rest.rest.read.v2.processor; | ||
|
||
import com.homihq.db2rest.rest.read.v2.dto.ReadContextV2; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.core.annotation.Order; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Objects; | ||
|
||
@Component | ||
@Slf4j | ||
@Order(4) | ||
public class JoinProcessor implements ReadPreProcessor{ | ||
@Override | ||
public void process(ReadContextV2 readContextV2) { | ||
if(Objects.nonNull(readContextV2.getJoins()) && !readContextV2.getJoins().isEmpty()) { | ||
for(String join : readContextV2.getJoins()) { | ||
log.info("Join - {}", join); | ||
|
||
} | ||
} | ||
} | ||
} |