1
我是新來寫HQl
查詢請幫助我..其實我的SQL Query
是有5個表即COURSE
,SKILLSET
,TIMETABLE
,INTREST
,USER
如何使用連接編寫Hibernate HQL查詢?
select
(select count(*) from intrest) AS
NoAttends,course.NAME,course.TYPE,user.FIRSTNAME,user.LASTNAME,skill.COURSE_CONT,
skill.TEACH_EXP,tt.CLASS_DUR,tt.COURSE_DUR,tt.DATE_TIME from COURSE course
inner join SKILLSET skill on
skill.course_id=course.s_id
inner join USER user on
user.s_id=skill.user_id
inner join TIMETABLE tt on
tt.course_id=course.s_id
where course.name IN ('course')
ORDER BY course.name LIMIT 10;
幫我嗎?