On Fri, 21 Jan 2005 01:11:11 +0100, Michael Gloegl <[EMAIL PROTECTED]> wrote:

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.

Thats freaking great!

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).

I'm all for it and the "syntax" looks just like it is supposed too... Submit a patch to jira and i/we'll take a look at it!

Is it for H2 or H3 ?

/max

--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com


------------------------------------------------------- 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

Reply via email to