Quantcast
Channel: Spring Community Forums - Data
Viewing all articles
Browse latest Browse all 297

Inheritance with Rowmapper

$
0
0
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

Viewing all articles
Browse latest Browse all 297

Trending Articles