Привет, может кто-нибудь указать мне, как мы можем передать предложение order by в качестве именованного параметра в hql
Пример:
Работает:
select tb from TransportBooking as tb
and TIMESTAMP(tb.bookingDate, tb.bookingTime) >= current_timestamp() order by tb.bookingDate
Не работает:
select tb from TransportBooking as tb
and TIMESTAMP(tb.bookingDate, tb.bookingTime) >= current_timestamp() order by :order