Skip to content
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

PathBuilder should ensure that strings resolve to properties in JPA entities #975

johnktims opened this issue Oct 1, 2014 · 0 comments


Copy link

@johnktims johnktims commented Oct 1, 2014

PathBuilder is in querydsl-core and therefore can't assume that it's dealing with JPA entities, but there should be a JPA-specific PathBuilder that verifies the existence of passed-in paths.

PathBuilder<User> entityPath = new PathBuilder<User>(User.class, "entity");
entityPath.get("missingField"); // should throw an exception

Original discussion:!topic/querydsl/S-iVPOgeFcg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.