firatgursoy / fluentquery

FluentQuery is a sql query builder by using java 8 functional interfaces and spring's JdbcTemplate.
Apache License 2.0
5 stars 0 forks source link

nested bean property bindings #24

Closed OOnogul closed 4 years ago

OOnogul commented 4 years ago

https://en.it1352.com/article/0795169701214100a584f60ea7695a41.html

OOnogul commented 4 years ago

listOneToMany method in (c78a11b5830a8bc9ae8183ae44f80336f6140f73) can be considered solution to this issue. Although, in mapRow subClassBiConsumer's instantiation requires nested class to be static, otherwise NoSuchMethodException is throwed for nested class constructors need enclosing class instance as constructor argument (https://stackoverflow.com/questions/17485297/how-to-instantiate-an-inner-class-with-reflection-in-java).