Mapping documents:
Code:
<query name="historico_corr_dados">
<![CDATA[ { ? = call PICAGE.PKG_SLA_CORR.CORR_DADOS_EFECTUADAS(54, 200712, 'U') }]]>
</query>
Hi,
I want to call a named query, but I need to specify the return entity name on runtime. I thought about doing this with the addEntity() function, but this only works for SQLQuery.
I would like to know if it's possible to cast the Query returned by getNamedQuery() to a SQLQuery and use addEntity. If not, what solution should I use? (I've considered changing the named query mapping in runtime, but for now I want to consider other options.)
Thanks!