Hi, all. I’m new to hibernate, and I’m
having a hard time finding examples on how to define a mapping for a stored
procedure. I’m mainly confused on the “call” portion.
<sql-query name="GETFUNDINGTYPES"
callable="true">
<return alias= "getFundingTypes" class="FundingType">
<return-property
name="code" column="CODE"/>
<return-property
name="description" column="DESCRIPTION"/>
<return-property
name="createTS" column="CREATE_TS"/>
</return>
{? = call GETFUNDINGTYPES ()}
</sql-query>
It may sound silly, but I need to understand the relevance
of the “?” ‘s. I’m returning all the columns in the
table, so I’ve listed all three as return properties. (CODE, DESCRIPTION,
CREATE_TS)
Any help that anyone can provide is greatly appreciated.
Thank you,
Paula