0
我如何能在下面的查詢翻譯成的DetachedCriteria:翻譯到的DetachedCriteria
select * from (
select a.* ,row_number() over (partition by hotel_id order by EXECUTION_START_DATE desc) rnk
from HOLIDAY_PACKAGES a
)
where rnk = 1
謝謝。我終於在DB中使用了視圖表並將其映射到一個對象 – Anat