2011-06-19 92 views
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 

回答