Join GitHub today
Mapping for sqlinsertclause based upon annotations #42
Currenty, the populate method of the sqlinsertclause makes mappings based upon bean property names.
A suggested system would be to have some kind of "Mapper" system that lets you map between bean properties and the physical fields with custom mapping if required, and one implementation that is based upon annotations
SQLInsertClause.populate(Object aBean, BeanMapper aBeanMapper)
Where you have ...
This would give most flexibility.
This would be quite nice... Also, I don't foresee any implementation drawbacks.