heh...now you guys have me more confused. :)
With this as the definition:
<sql-query name="divisions_on_file_spr" callable="true">
<return alias="div" class="us.tx.state.oag.OagCommon.hbm.HbmOagDivisionTable"/>
{ ? = call divisions_on_file_spr(?) }
</sql-query>
This invocation:
Query lo_query = lo_HbmSessCommon.getNamedQuery("divisions_on_file_spr");
lo_query.setParameter(2,"752");
List records = lo_query.list();
Fails on the setParameter call:
java.lang.IllegalArgumentException: Positional parameter does not exist: 2 in query:
Considering there are two ?'s in that statement, I'm not sure why this is happening.
I was referencing this article:
http://www.javalobby.org/java/forums/t38756.html
when trying to use the
{ ? = call divisions_on_file_spr ( :org1 ) }
syntax.