[hibernate-issues] [JIRA] (HHH-13944) HQL/JPQL size() does not work (anymore) with nested expression

Alexandre Jacob (JIRA) jira at hibernate.atlassian.net
Fri Apr 10 12:23:20 EDT 2020


Alexandre Jacob ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Abe6a9f9e-5d42-485d-a407-922aaec65d08 ) *commented* on HHH-13944 ( https://hibernate.atlassian.net/browse/HHH-13944?atlOrigin=eyJpIjoiZjAyMWEzMjk0NTBmNGRlMjkzMGI1ZTNmNGVkMWRiOGMiLCJwIjoiaiJ9 )

Re: HQL/JPQL size() does not work (anymore) with nested expression ( https://hibernate.atlassian.net/browse/HHH-13944?atlOrigin=eyJpIjoiZjAyMWEzMjk0NTBmNGRlMjkzMGI1ZTNmNGVkMWRiOGMiLCJwIjoiaiJ9 )

I attached (2 by mistakes) test case with a test as described in the description of the ticket.

In the test, you can see that the non nested version of the query work:

{code:sql}select teacher from Teacher teacher where size(teacher.skills) > 0{code}

While the nested one doesn’t:

{code:sql}select student from Student student where size(student.teacher.skills) > 0{code}

( https://hibernate.atlassian.net/browse/HHH-13944#add-comment?atlOrigin=eyJpIjoiZjAyMWEzMjk0NTBmNGRlMjkzMGI1ZTNmNGVkMWRiOGMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13944#add-comment?atlOrigin=eyJpIjoiZjAyMWEzMjk0NTBmNGRlMjkzMGI1ZTNmNGVkMWRiOGMiLCJwIjoiaiJ9 )

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/20200410/e4d3043f/attachment.html 


More information about the hibernate-issues mailing list