-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
Delegate projections with a select
clause to ORM
#38931
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
You added //FIXME comment that seems more like a dev comment, or a TODO.
I'm not fan of having FIXME in the code, or maybe create an issue describing what needs to be fixed and add the link int the FIXME comment.
Looks like Kotlin is testing single field projections… |
Yeah, it's something that's always been there I suppose, but it stroke me as a bug, I thought I'd leave a note for the person who'd find the bug and want to fix it later. |
I don't know what to do with this. This fixes reported bugs, but introduces a regression around single-column projections, which is fixed in ORM 6.5.0 (not released yet). Either we wait until ORM is released to merge this, or I merge it because single-column projections are not very common, or I merge this with a workaround for single-column projections until ORM is released. Any opinion? |
If ORM 6.5.0 is not too far away, it is better to wait for it than to introduce a regression. |
Fair enough. |
Rebased on |
This comment has been minimized.
This comment has been minimized.
Well this is weird, it's supposed to be fixed :( |
Oh, HR, let's see… |
Ah…
I suppose I can add support for that, but it's soon going to be supported by HR… |
I can fix that, but then I'm left with |
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874 Fixes quarkusio#31117
Using a subselect. Only useful for HR until they support count queries, but it was easy enough to fix
OK, last try? |
Status for workflow
|
Problem is that there's a bug in ORM that disallows projections of single columns, but that will be resolved by hibernate/hibernate-orm#7874
Fixes #31117