Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow entity views to contain subviews with custom correlation #108
The idea is to allow an attribute on an entity view to be computed by a subquery. The subquery would be executed for every entity view object created.
An entity view could contain a subview and the mapping in the main entity view would contain the correlation predicate. Something like the following.
Maybe the BaseQueryBuilder is an overkill in this case and we should provide a dedicated interface consisting of just FromBuilder and WhereBuilder or parts of them in a different form. This could allow several strategies for fetching the the subview like proposed in #52
To get LEFT JOIN semantics in case of JOIN fetching requires to rewrite some of the predicates because in JPA2-means it can only do a CROSS JOIN to implement this feature.
which would require some extensions to the core parts.