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

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

c++ - Serialize a class with a Qlist of custom classes as member (using QDataStream) -

Read video using VideoReader function in Matlab? -