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
We have countByCategory(category: Category): Long for example.
In 3.2.1, R2dbcEntityTemplate checks whether return type is simple type or not at first. So query result doesn't enter ReadingConverter.
In 3.2.2 however, it checks whether custom converter exists or not before checking simple type. In this time, query result enters ReadingConverter. Query result have only one column, and error occurs.
Sorry for my poor English. I hope you understand what I want to say.
The text was updated successfully, but these errors were encountered:
jaeykweon
changed the title
Count query method except 'repository default' works in 3.1.1, but throws error in 3.2.2. Maybe bug?
Count query method except 'repository default' works in 3.2.1, but throws error in 3.2.2. Maybe bug?
Feb 3, 2024
mp911de
changed the title
Count query method except 'repository default' works in 3.2.1, but throws error in 3.2.2. Maybe bug?
Reading converter executed for 'countBy' method
Feb 5, 2024
Situation
While using Reading Converter for converting data, I found some query method which works in 3.2.1 but throws error in 3.2.2.
You can compare 3.2.1 and 3.2.2 in example code.
Error Description
Codes added at
R2dbcEntityTemplate.java
in 3.2.2 handle 'count query method' differently compared to 3.2.1.You can see changes below or Comparing changes
We have
countByCategory(category: Category): Long
for example.In 3.2.1,
R2dbcEntityTemplate
checks whether return type is simple type or not at first. So query result doesn't enter ReadingConverter.In 3.2.2 however, it checks whether custom converter exists or not before checking simple type. In this time, query result enters ReadingConverter. Query result have only one column, and error occurs.
How to test
Use example code.
Suggestion
I think switching first and second statement may solve this problem.
ETC
Sorry for my poor English. I hope you understand what I want to say.
The text was updated successfully, but these errors were encountered: