Hi everybody,
today I was in the mood to get a bit deeper into the whole Loader-Thing so I made a quick stab at implementing scalar value query support for createSqlQuery. I have it working so far for named queries, with the user specifying the types of the returned values:
<sql-query name="orgNamesAndOrgs"> <return alias="thename" type="string"/> <return alias="org" class="Organization"/> SELECT org.NAME AS {thename} , org.NAME AS {org.name}, org.ID AS {org.id} FROM ORGANIZATION org ORDER BY {thename} </sql-query>
It is a bit dirty, and I am not sure if I integrated it correctly. Do you like the general direction of this, and if yes, does somebody want to have a look if I messed something up? (Tests still all pass, and I added some new ones, too).
Michael
-- Michael Gloegl mail: [EMAIL PROTECTED] www: http://www.gloegl.de phone: +49 (0)176 24 111 070
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel