Is there a way to call a stored procedure created on SQL server via java code using hibernate/jdbc with passing list of values/objects as parameters? If yes then how can i achieve it? I know how to call a stored procedure, but i have used stored procedures so far with passing only few parameters and not a complete list of values as i intend to do batch update/insert. If i do something like the following, would that make sense?
getTemplate().getSessionFactory().getCurrentSession().createSQLQuery("CALL proc_insert(:list)").setParameterList("list", objList).executeUpdate();