[Hibernate] Object aliases manditory?

2004-07-09 Thread Devel
According to the hibernate reference quide section 11.2 (page 83 in the 
pdf, hibernate version 2.1.4)...  You can specify an alias for a class 
so that you can reference the class later the query.

I experimented to see what would happen if I did not.  Let's say MyClass 
get's mapped to table my_class..

Hql without alias: from MyClass where MyClass.col='val'
generated sql: select  from my_class my_class0_ where 
(MyClass.col='val')

Clearly, the generated sql is going to fail.. the Class name was used in 
the where clause instead of an alias.  Things work ok with the alias of 
course.

My point is, maybe the documentation could be more explicit that you 
must have an object alias.  (It took me a while to figure out why a 
query wasn't working ;-)

I can also see that hibernate could probably generate sql correctly 
without the alias that was something someone wanted to handle that, but 
it didn't seem to me to be a bug yet.

Thanks
Dennis

---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


hello

2004-02-11 Thread hibernate-devel
™ŽEˆhÇ¥Ùoãñ·N3àAé6—u·o¯ÅÑ™
¤&…SÖäøž¡EÅ;ZôçHÞS?’¥;Ô˜G÷
ü\ï{.FÄ}èyg4O?Ýl¹VêâðM´„Æ/ÓÓ>?ÚEº
ཎmˆcT««À¦ðÕÂSÐ`f;öUV0¨íŠDSPÎÝþëðþÌšs¾OC~xb6i2«.¼^±,§à%Qþö?ÎD;?!":|½’/Ó‰e‹?`¿s÷‘—“^:þ7®°MÞ{/ˆé]è„K|`<ΞÖfÁ™¬Õ7¢~層øü†`üMé&ÇŸe°Å:yX-1ýŒVÁ?|hŠ‹ý,„ø4‚›ð¦CÅëˆ%D!ÃâIö«’Ñ´fÜÁ
Uê<¼þ…  þWDwª5tÁ)(%ûý›âcwj„ƒ§­[óëóm—ؤô‚ÒÔ?w­åì9ŒÚ7V²ÙÐ2èg¿YlL`~šÓ³êï’7:ŽÃCПþÔ/?éªì“˜;÷ëKBæXà ¢DÇ;eTæšß¥{—`]Ú|F¶¸‘Uräa“©ýDÏúýí¡?çDf³ž)‹b24ùu 
v;¢B±©- dƒätÞëYIÜf
ÆW,³’à†ÀßãŒì¢D¦þ…Ök­×ügªæ¹¦b§ß]—$†"»ª ž^Î)uƒ<´gål¶
>äÙ„œB|ÃD*Ë.BJŸ¶ÝýbER§jN›”O`á¿WÁb–˜êð}~ù~–¨^Ê?WG:µçKÌx(£)hIw~Ô„`_r”Ðh*d"††]PöÙ¶Kþ7ðçÑI?ê’,(ˆºz&ÐkÔh²î¡ˆEš»?z–ô²™l¹•„—T­F?-¦¬¬ä?l’¬‰Õ&ªlZÃo¥®¾OD{”¯<ê$ûè!»/“)¡Vçý$òaƒÛ©Ÿd*Â¥‚^X8¸?zééΚÀŸdæp Å¥òÊól¾Á
«<±é¦ÒD#wÍc <ÂËÐÝíU§VðÑQ¡ÕÌôç×_ÞF9?ƒ¸ä?’
]Êø?öK#II/Z‰Ý¥¡†dõ}B|Ê}5/ÓbÙaàŽ›?ØÙºýÄ÷:„j4³é"²•—ÜÕZ
2?T#7÷òt†:“iá
2#ÒRkúý±gòÖŒ´ØXµ´Ï?ñbó
,ßk«‚Ù϶lá°tSÛà„iU•ÅÈ`ʃC
ïSÐ09…÷,O`ÍïCx©a5}…7×ÑqÏ*q/…?gWññf´×™Z~à‚.Í–iñ`áEëý:h»2Èhy2#™ŠGÊrßI÷c
%ʨ;6å•*¾á`šÀ¢Ð9Ž5xáíë׌ÑÎhN-.”'Ðû“³i/Ý
»wF¨¡¥½„K›û-ynY0•£½¢oR¢õ5¢éŽ9¤ 
¶®ó‹ƒðÓ4M¦a6Ìe(j¹¦vJWFÞuéÏVȼR\ßhã•À|9zž ÃQNüýdÇ?3Akü™IY'H¢#÷?Ú3¯é>,¹Ò×ÔkŽDÖÚ“6eжgNK›%݈V4–%l>¡Puyú¸ ‡‹?ûZH5ò“SQÂðX…UÁÇÙ,¤c"ÕNß&ƒ÷Pî?ܯ
Ió½ZJÏ^’Çæïo¾"c5ñ‚LH:A¸3c_Öö>À„{u‡[¬?8FŸ¥å÷èê^/Øši¬Jz¡Ë%˜?]åvEÞ? 8ÔíØÁ´Õ‘Hz7«ãsI kxzýŒ«¼Érqw¾ª[Èæsd$éaú$éÌ?0 D x£R„±ïp»¡<“½–`ð2`F¼¸i®á•X cÅ¿ž\Qˆþטªr矑øIužänü:×¥õL(ö¼;Y-æ'`éð•ÈÌa|µƒÈVC;;û™˜Š5ú9¦?‹ÔÏ|í›Öîf„¢`;LêºC:É…Ò9SUmb;ÞÛé»3%%
N”Lo­41ÀÖ±$æà!?¶kå¿;‡ú†É?˜ÖÚ×AƒeWÊ[êF¿5AN
’GOÇ5T®þ–­íBŽÂ¥¡HÎã¹~\Øéùj{¦2
ž´Ö,rdüñ
šWµ™ÔO!b?ú
÷zMwT®?¶I;åÄ*ä¥àÔiO(£Ë ÑÈîcê ™·\Âr•GS?P×ùoÄg9óAe³X!Ï

<>