0
Query query = session.createQuery("select s.studentId as ROLL_ID, " +
"s.studentFirstName as STUDENT_NAME, " +
"s.studentDOB as DOB, " +
"su.subjectName as COURSE, " +
"e.mark as MARK " +
"from Enrolment e, Students s, Subjects su " +
"where s.studentId = e.studentId " +
"and e.subjectId = su.subjectId");
數據的列表,這是什麼,我從數據庫中獲取,但它返回一個對象如何從這些對象檢索數據的列表..休眠加入查詢返回一個對象,我應該如何檢索對象
謝謝** JB Nizet **其工作正常。我是休眠的新手,可能錯過了你建議的部分。你能詳細解釋一下嗎?如果你有鏈接到你可以共享的任何文檔。 – nikhilgupta86