Hi,

Per request alias-mode is now automatically detected when using  <return>.

If no alias is specified column aliases will be used instead of the generated aliases.

So its now even shorter:

<sql-query name="EmploymentAndPerson">
        <return class="Employment"/>
        <return class="Person"/>
        SELECT * FROM Employment, Person
</sql-query>

To Emmanuel:

I have removed the just added addEntity on SQLQuery that allowed to specify aliasmode since at the
moment the engine behind *requires* an alias and I couldnt find any code that used it.


I would like to really see the need for this since it will add quite
a few extra methods on SQLQuery to be complete and require somewhat rigid changes in SQLQueryImpl to
make it survive with alias=null.


And I think we should also try to align/consolidate the sqlresultsetmapping and the alias stuff before adding
alot of new public api methods.


/max




------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to