-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancementA general enhancement
Milestone
Description
BeanPropertyRowMapper
requires setters being present. Which is fine if you have some.
But if you only have a simple dto class for some reason, and want to make use of the mapper, it requires to create setters just for that.
It would be nice if we could have some DirectFieldRowMapper
additionally, similar to:
https://gist.github.com/stianl/6629122#file-directfieldrowmapper
Spring already allows direct field mapping for mvc with DataBinder.initDirectFieldAccess()
.
So why not providing a direct mapper also for jdbc beans, that can simply operate on public
fields?
HalitTalha
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancementA general enhancement