JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Object Relational Mapping » Hibernate  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
作者 Re:Hibernate HQL Left Join [Re:wildpeanut]
qrtt1





發文: 1756
積分: 32
於 2010-08-09 13:08 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
wildpeanut wrote:

我使用HQL下了這樣的SQL
1
select a.id, a.phoneSet.phone from user a left join a.phoneSet




試試這個唄
1
SELECT a.id, ps.phone from user a left join a.phoneSet ps


reply to postreply to post
蝸牛角上爭何事?石火光中寄此身,隨富隨貧且歡樂,不開口笑是癡人。
my notes
話題樹型展開
人氣 標題 作者 字數 發文時間
10659 Hibernate HQL Left Join wildpeanut 579 2010-08-09 11:58
10327 Re:Hibernate HQL Left Join qrtt1 223 2010-08-09 13:08
10337 Re:Hibernate HQL Left Join wildpeanut 167 2010-08-09 13:18
10304 Re:Hibernate HQL Left Join qrtt1 535 2010-08-09 13:59
10282 Re:Hibernate HQL Left Join wildpeanut 431 2010-08-09 23:29
10487 Re:Hibernate HQL Left Join qrtt1 1951 2010-08-09 23:56
10252 Re:Hibernate HQL Left Join wildpeanut 1711 2010-08-29 19:26
» JWorld@TW »  Object Relational Mapping » Hibernate

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8