java - How to map out parameter in jdbcTemplete.query with BeanPropertyRowMapper -
i using spring's jdbctemplate.query() call stored procedure , beanpropertyrowmapper map result set bean. stored proc has 2 in parameter , 2 out parameters multi row rs. able send stored procedure's in parameters , map rs bean in following way:
final string stored_proc_name= "{call mystoredproc(?,?)}"; list<mybean> mybeanlist= jdbctemplate.query( stored_proc_name, new object[] { 12, 100 }, //in parameters new beanpropertyrowmapper<mybean>(mybean.class)); // rs bean mapper
how map out parameter. want take advantage beanpropertyrowmapper
Comments
Post a Comment