You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to perform type-safe queries using R2dbcTemplate. My goal is to achieve functionality similar to MongoDB's template, as you suggested—reference test code.
However, there’s an issue with handling column names, as described in this issue. I’m considering a default strategy for resolving column names, though this might limit the flexibility of custom column name strategies, similar to MongoDB’s template, which only considers property names.
Are there any considerations I should keep in mind?
This is a duplicate of #1491. The comment about column names is misleading. Spring's API works primarily with property names (KProperty maps to property names as well). Having a Criteria object that is being mapped against the domain model removes the need in a Kotlin extension to resolve column names.
I suggest that you file a Pull Request and use MongoDB's implementation as inspiration for the Relational implementation.
Therefore, I'm closing this ticket as a duplicate. Happy to continue the discussion over an actual PR.
I would like to perform type-safe queries using R2dbcTemplate. My goal is to achieve functionality similar to MongoDB's template, as you suggested—reference test code.
However, there’s an issue with handling column names, as described in this issue. I’m considering a default strategy for resolving column names, though this might limit the flexibility of custom column name strategies, similar to MongoDB’s template, which only considers property names.
Are there any considerations I should keep in mind?
extension
test
Since CriteriaBuilder doesn't override equals, I'm using
toString
for comparison.The text was updated successfully, but these errors were encountered: