Skip to content

Comments

SpringDataJDBC対応#1060

Merged
irof merged 22 commits intomainfrom
agent/spring-data-jdbc-support
Feb 22, 2026
Merged

SpringDataJDBC対応#1060
irof merged 22 commits intomainfrom
agent/spring-data-jdbc-support

Conversation

@irof
Copy link
Collaborator

@irof irof commented Feb 22, 2026

No description provided.

@irof irof changed the title agent/spring-data-jdbc-support SpringDataJDBC対応 Feb 22, 2026
return outputAdapters.stream()
// output adapterの実装しているoutput portのgatewayを
.flatMap(outputAdapter -> outputAdapter.implementsPortStream(jigTypes)
// interfaceのRepository(Spring Data JDBCなど)は実装クラスが存在しないため、自身をoutput portとして扱う
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

元々のコメントが書きかけなのはおいといて。。。

この処理さらにアレになったなぁ

return new SqlStatements(Stream.concat(
myBatisStatements.list().stream(),
springDataJdbcStatements.list().stream())
.distinct()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

distinctいるかね。

}
}

private String defaultQuery(SqlType sqlType, String tableName) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

これが必要なのは元の作りの悪さな気がするな。。。

irof added 9 commits February 22, 2026 23:19
テーブル名解析失敗時のログメッセージを簡潔に改善し、「解析失敗」と明示しました。これにより、ログ内容がより分かりやすくなります。
rawTextとnormalizedQueryを分離し、SQLの正規化処理をQuery内に集約しました。これにより、SQL解析ロジックの一貫性が向上し、コードの可読性とメンテナンス性が改善されました。
@irof irof merged commit 06f7fbc into main Feb 22, 2026
2 checks passed
@irof irof deleted the agent/spring-data-jdbc-support branch February 22, 2026 15:43
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.

1 participant