title: Hibernate/JPA: How to find sub entities using InheritanceType.JOINED
body: <p>Can you, given a SuperEntity which is extended by three sub entities <strong>SubEntityA</strong>, <strong>SubEntityB</strong> and <strong>SubEntityC</strong>, perform a criteria query on SuperEntity to retrieve only instances of <strong>SubEntityB</strong> and <strong>SubEntityC</strong>? </p>
  
  <p>With InheritanceType.SINGLE_TABLE you can set a discriminator value which I believe is used to query. How is it done with the InheritanceType.JOINED? </p>