關於hibernate急迫加載問題(多重外鍵關聯)

數據庫結構如下 strategy中有外鍵member_id (關聯member表)     外鍵strategy_category(關聯category表)   而member表中有外鍵position_id (關聯positons表) 如果前臺頁面直接查詢stategy表中內容  我們hql語句如果這麼寫 String hql = "From Strategy where id = :id";
相關文章
相關標籤/搜索