Mar 31st, 2009, 03:44 AM
I am executing a DB Stored procedure which returns some values which I want to populate in a java bean (which also has other java object as one of the property).I dont know how to set the values from stroed procedure into the embeded object.I am able to set the top level class properties.
I am using something like this:
returningResultSet("PersonList", TrimmingBeanPropertyRowMapper.newInstance(PersonBe an.class)).
1) TrimmingBeanPropertyRowMapper<T> extends BeanPropertyRowMapper implements ParameterizedRowMapper<T>
2)PersonBean is having Address class object as a property.
3)Procedure return Line1 ,Line2 ..etc address details which are part od Address class , and I want to set the value of these fileds too???
PropertyEditor could be used for this type of scenarios if yes how???