Hi,
We are using jdbcTemplate in our DAO classes and not using an ORM.
I am interested in knowing what is the best way to update attributes of a parent object using the rowMapper.
If class B extends A, I could write B.setMethodOnClassA, and it should work as long as the column is in the resultset and throw an error otherwise.
What is the best way to achieve this hierarchical mapping?
Thanks
Sanjay
We are using jdbcTemplate in our DAO classes and not using an ORM.
I am interested in knowing what is the best way to update attributes of a parent object using the rowMapper.
If class B extends A, I could write B.setMethodOnClassA, and it should work as long as the column is in the resultset and throw an error otherwise.
What is the best way to achieve this hierarchical mapping?
Thanks
Sanjay