openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: Query for union of child list
Date Tue, 01 Jun 2010 16:00:55 GMT

> I need to get a list of all the unique "Foo" objects in the "childFoos"
list for all "Device" objects. 

  JPA 2.0 introduced a new entity type expression for JPQL which may be
useful here.
  I will expect something like (provided Product-Foo is a bi-directional

  String jpql = "select f from Foo f where f.parent = :subtype";
     .setParameter("subtype", Device.class)

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message