Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
PathBuilder should ensure that strings resolve to properties in JPA entities #975
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