[hibernate-issues] [JIRA] (HSEARCH-3889) Exception Predicate targets unexpected fields when use nested() in sort filter

Waldemar Kłaczyński (JIRA) jira at hibernate.atlassian.net
Tue Apr 14 15:43:52 EDT 2020


Waldemar Kłaczyński ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A77e50cac-bda3-4af4-9bb3-6461f4d10eea ) *commented* on HSEARCH-3889 ( https://hibernate.atlassian.net/browse/HSEARCH-3889?atlOrigin=eyJpIjoiNTc2NWEwNzRmNmI2NGRkOGEzYzgwN2ZlNWE1ZTc2ZWUiLCJwIjoiaiJ9 )

Re: Exception Predicate targets unexpected fields when use nested() in sort filter ( https://hibernate.atlassian.net/browse/HSEARCH-3889?atlOrigin=eyJpIjoiNTc2NWEwNzRmNmI2NGRkOGEzYzgwN2ZlNWE1ZTc2ZWUiLCJwIjoiaiJ9 )

The user could define filters as you presented. Maybe it is better to allow more if it is forbidden. Now the code is getting too complicated. Dividing queries later, submitting them according to the use case is inefficient and complicates the code. You can't prepare filtering patterns, querying dynamic models. Building separate filters for sorting and searching, and in the future and aggregation will be too complicated.

After that, even if the user duplicated the predicates, they will be optimized. This is in my patch. But it will be possible to bus complex predicates in satatic methods as well as in native filters. Sometimes over-straining the nesting predicate as an indication that an element should be nested if the context requires it.

( https://hibernate.atlassian.net/browse/HSEARCH-3889#add-comment?atlOrigin=eyJpIjoiNTc2NWEwNzRmNmI2NGRkOGEzYzgwN2ZlNWE1ZTc2ZWUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3889#add-comment?atlOrigin=eyJpIjoiNTc2NWEwNzRmNmI2NGRkOGEzYzgwN2ZlNWE1ZTc2ZWUiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:185bad4 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200414/ea2a5348/attachment.html 


More information about the hibernate-issues mailing list