parent « Criteria « JPA Q&A





1. Hibernate Criteria filter by parent    stackoverflow.com

I want to filter objects based in some conditions or if their parent is of a specific type.

class A {}

class B extends A {}

class O {
    A a;
 ...