Given the following entity definitions:
@Entity class abstract A { Collection<A> parents; } @Entity class B extends A { } @Entity class C extends A { }
Is it possible to define a method that returns all entities of type B and C that have a given parent without , to make two separate calls and then merge the results?
Collection<A> getAllByParentId(long id)
user63904
source share