ex) Item중 Book, Movie를 조회
select i from Item i
where type(i) in (Book, Movie)
select i from i
where i.DTYPE in ('B', 'M')
ex) 부모인 Item과 자식 Book이 있다
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'