instanceof « HQL « JPA Q&A

1. HQL - instanceof operator

I went looking for this myself and had a guess at the syntax - for anyone else looking this worked for me as an example: superclass.class in(SubClass) So for a very basic example: from Wheel wheel left outer join where car.class in(Subaru) this would find all wheels for Subarus. This is taken from a much more complicated query that i've ...

2. HQL instanceof

3. instanceof in HQL ?