Hi,
Did you try to use a stored procedure to load from as well? I have been trying to use a "read" stored procedure, but cant find a way to set the out parameter:
The mapping is defined like this:
Code:
<sql-query name="selectAllActions_SP">
<return alias="acimActions" class="NHAcimActions">
<return-property name="actioncode" column="ACIM_ACTION_CODE"/>
<return-property name="actiondesc" column="ACIM_ACTION_DESCRIPTION"/>
<return-property name="actionsecs" column="ALLOWABLE_ELAPSE_SECS"/>
</return>
call ACIM_ACTIONS_PKG.get_all_acim_actions(?)
</sql-query>
If I try to use this as a named query
Code:
IList allActions = session.GetNamedQuery("selectAllActions_SP")
.List()
I get an error:
Quote:
System.Collections.ListDictionaryInternal
Expected positional parameter count: 1, actual parameters: [] [call ACIM_ACTIONS
_PKG.get_all_acim_actions(?)]
Is there a way to set this?