https://kotlinlang.org logo
#kdbc
Title
# kdbc
e

edvin

05/19/2016, 9:27 PM
About the auto mapping. Are you sure we want to use annotations? There are some drawbacks, like if you can't change the domain object, the auto mapping becomes impossible. What about declaring a map somehow instead? Mapping requires type conversion as well, unless you define a map as a function that takes a ResultSet and applies it to a domain object. Then you have the full freedom of Kotlin code to perform the mapping, and you don't even need converters. Same thing can be used to convert from a domain object to a query as well.