-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path.get(PluralAttribute<X, C, E>) lower bound missing on X #108
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@krichter722 Commented |
|
Add lower type bounds to the entity argument X of the return value of Path.get(PluralAttribute) and Path.get(MapAttribute). The absense of these lower bounds prevent usage of the JPA criteria API for a collection field f which is declared in an entity A which then is extended by another entity B and used in the type bounds of TypedQuery. closes #108 Signed-off-by: Karl-Philipp Richter <krichter@posteo.de>
Path interface declares:
<E, C extends java.util.Collection> Expression get(PluralAttribute<X, C, E> collection);
it should be instead
<E, C extends java.util.Collection> Expression get(PluralAttribute<? super X, C, E> collection);
with lower bound on X.
The same apply on Path.get(MapAttribute<X, K, V>).
The text was updated successfully, but these errors were encountered: