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

Closed
johnktims opened this Issue Oct 1, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@johnktims
Member

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: https://groups.google.com/forum/#!topic/querydsl/S-iVPOgeFcg

@timowest timowest added this to the 3.5.1 milestone Oct 3, 2014

@timowest timowest added the feature label Oct 4, 2014

@Shredder121 Shredder121 closed this in #985 Oct 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment