Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ResultSet to RowDocument in AggregateResultJdbcConverter #161

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chanhyeong
Copy link
Collaborator

@chanhyeong chanhyeong commented Dec 9, 2024

Replace ResultSet to RowDocument, which used to fetch the DB value.
The current change does not mean much right now, but I think it can be lead to use converter implementations of spring-data-jdbc.


DB 조회 값을 가져오는 부분을 ResultSet 에서 RowDocument 로 변경합니다
현재 변경으로는 당장 큰 의미가 있지는 않지만, spring-data-jdbc 의 converter 구현으로 변경이 가능할 것 같습니다

@chanhyeong chanhyeong requested review from wool0826 and IAM20 December 9, 2024 10:06
@chanhyeong chanhyeong self-assigned this Dec 9, 2024
while (!resultSetHolder.isDone() && resultSetHolder.next()) {
Map<String, Object> entityMap = this.mapSingleTableRow(
persistentEntity, resultSetHolder.getResultSet());
while (resultSet.next()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref. spring-jdbc RowMapperResultSetExtractor
This extract makes ResultSet to List<T>.

We've managed the AggregateResult results in this method, I bring the iteration logic here.

@chanhyeong
Copy link
Collaborator Author

3.5.0 버전에 같이 반영합니다

@chanhyeong chanhyeong force-pushed the feature/replace-resultset-to-rowdocument branch from a98983b to 241e954 Compare December 24, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants