我将现有SQL语句转换为JPQL语句时遇到问题。
SQL语句是:
select SeatsID from cinema.seats a
where a.SeatsID not in
(select SeatID FROM cinema.reservation_seats s, cinema.reservation r
where s.ReservationID = r.ReservationID and r.ShowID = 1)
找到ID = 1
的所有展示免费席位。
但我无法正确编写JQPL语句。