We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have code like this that tries to resolve a PropertyPath multiple times doing the same/similar thing multiple times:
PropertyPath
try { if (entity.getPersistentProperty(path) != null) { return PropertyPath.from(Pattern.quote(path), entity.getTypeInformation()); } return PropertyPath.from(path, entity.getTypeInformation()); } catch (PropertyReferenceException | InvalidPersistentPropertyPath e) { if (path.endsWith("_id")) { return forName(path.substring(0, path.length() - 3) + "id"); } // Ok give it another try quoting try { return PropertyPath.from(Pattern.quote(path), entity.getTypeInformation()); } catch (PropertyReferenceException | InvalidPersistentPropertyPath ex) { } return null; }
We should revisit property resolution and simplify the code by avoiding duplications and refactoring it to a comprehensive form.
The text was updated successfully, but these errors were encountered:
Criteria object is not failing in is clause. It is only failing with clauses like in and exists
Sorry, something went wrong.
No branches or pull requests
We have code like this that tries to resolve a
PropertyPath
multiple times doing the same/similar thing multiple times:We should revisit property resolution and simplify the code by avoiding duplications and refactoring it to a comprehensive form.
The text was updated successfully, but these errors were encountered: