is it possible to get the column names out of a native sql query
defined in a namedquery hbm.xml file
like this
<sql-query name="findAllStpQueuesWithParmsGetMetaData" >
<!--
<return-scalar column="id" type="integer" />
<return-scalar column="name" type="string" />
<return-scalar column="description" type="string" />
-->
select id , name,description from StpQueue where browseflag = :flag
</sql-query>
if i uncomment the return-scalar part
by calling namedSQLQueryDefinition.getScalarQueryReturns();
iam able to get the column names id,name,description
but if i comment it i don't get anything.
i Know in hibernate 3.1 it auto detects types.
is there any way to get column names the same way it detects types
that is exposed to the public.
Thanks
Manoj
|