嗨,任何人都可以指出我们如何将order by子句作为命名参数传递给hql
例如:
作品:
select tb from TransportBooking as tb
and TIMESTAMP(tb.bookingDate, tb.bookingTime) >= current_timestamp() order by tb.bookingDate
Run Code Online (Sandbox Code Playgroud)
不起作用:
select tb from TransportBooking as tb
and TIMESTAMP(tb.bookingDate, tb.bookingTime) >= current_timestamp() order by :order
Run Code Online (Sandbox Code Playgroud)