select i from Item i where type(i) IN(Book, Movie)
select i from i where i.DTYPE in('B','M')
select i from Item i where treat(i as Book).author = 'kim'
select i.* from Item i where i.DTYPE = 'B' and i.author = 'kim'
출처 : 자바 ORM 표준 JPA 프로그래밍 - 기본편