Open schauder opened 3 years ago
Hi @schauder, I want to work on this issue. I made a quick review for the issue. I think related extends should be added in SelectBuilder interface and then related implementations should be added to DefaultSelectBuilder class. Then all casting would be unnecessary. If this issue has any other aspect except above, may you state it, please ? Regards,
There are two things I'm currently aware of that we need to look out for.
Using the
SelectBuilder
often requires casting because type information is lost in the API.One example: https://github.com/spring-projects/spring-data-jdbc/blob/79923b66dc67f49a294a68eeab82a76b5dfaddc1/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/JdbcCountQueryCreator.java#L53
We should try to improve the API to require less casting.