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?
to your account
Csongor Szita opened DATAJPA-1125 and commented
The current QueryByExamplePredicateBuilder not handle cycling- and self-reference, so it throw StackOverflowException.
For example if we have the below entity-s:
And the below function:
public List<User> getUsers(String firstName, Address address)
User user = new User();
In the above example the address has reference the user (via audit createdBy) and the user has reference the address so it will throw StackOverflowException.
The solution is to check if identifierAttribute (attributes) present in the example, and if so, then create Predicate Only for those.
In the above example the QueryByExamplePredicateBuilder shuold create two Predicate:
No further details from DATAJPA-1125
The text was updated successfully, but these errors were encountered:
Csongor Szita commented
If you agree with the problem, I would like to send a pull request with a solution that handle identifier matching if the identifier attributes are PersistentAttributeType.BASIC.
Sorry, something went wrong.
Jens Schauder commented
I'm not sure what Ids have to do with this, but a PR that adds a check to prevent infinite recursion would be very welcome
No branches or pull requests