aaberg / sql2o

sql2o is a small library, which makes it easy to convert the result of your sql-statements into objects. No resultset hacking required. Kind of like an orm, but without the sql-generation capabilities. Supports named parameters.
http://sql2o.org
MIT License
1.15k stars 229 forks source link

ColumnMapping to nested field #186

Open felipear89 opened 9 years ago

felipear89 commented 9 years ago

I want to map colMaps.put("client_id", "client.id");

then, the framework would do client = new Client() and client.setId(resultset.getString('id')

helenoalves commented 7 years ago

@felipear89 How do you deal with this ? I want to map a column for a nested proprty in a class !

Regards

arnaudroger commented 7 years ago

@helenoalves @felipear89 sorry for hijacking that but simpleflatmapper has sql2o support and provide inner object mapping see http://simpleflatmapper.org/0108-getting-started-sql2o.html