Add subquery(EntityType) to javax.persistence.criteria.CriteriaQuery

Description

If using dynamic entities not defined by classes (as is the case when using EntityMode.MAP), there's no way to create a subquery. This is because javax.persistence.criteria.CriteriaQuery.subquery() takes an entity Class as an argument, and unlike javax.persistence.criteria.CriteriaQuery.from() there's no overloaded method to subquery by EntityType. This severely limits what can be done using entities mapped with EntityType for which there is no Java class.

Links to https://java.net/jira/browse/JPA_SPEC-71

Activity

Show:

Brad Koehn January 27, 2014 at 7:54 PM

I'm working on a pull request for this work. You can assign this issue to me if desired.

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

No time logged112h remaining

Components

Priority

Created January 27, 2014 at 7:51 PM
Updated January 27, 2014 at 7:54 PM