Alexander Schwartz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6267ec4...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNmI2YWYyMDA5...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16061?atlOrigin=eyJpIjoiNmI2YW...
) HHH-16061 (
https://hibernate.atlassian.net/browse/HHH-16061?atlOrigin=eyJpIjoiNmI2YW...
) SqmDynamicInstantiation warns about dynamic Map instantiation when using an entity (
https://hibernate.atlassian.net/browse/HHH-16061?atlOrigin=eyJpIjoiNmI2YW...
)
Change By: Alexander Schwartz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6267ec4...
)
I'm working on upgrading Keycloak from H5 to H6. I see the following warning:
{quote}SqmDynamicInstantiation:174 WARN Argument [org.hibernate.bugs.cl.Parent as p] for
dynamic Map instantiation did not declare an 'injection alias' [parent] but such
aliases are needed for dynamic Map instantiations; will likely cause problems later
translating sqm{quote}
This is the query, please note that we put the entity in the map.
{quote}select new map(p as parent) from parent p{quote}
This example is simple and looks stupid with a single map entry - in the real code we
place other fields from joins in it as well. Still, it is a minimal reproducer.
Despite the warning it seems to work fine.
Here's some extracted sample code:
[
https://github.com/hibernate/hibernate-test-case-templates/compare/main.....]
How can I get rid of the warning?
Although I don’t see an immediate impact, am I missing something here it might have an
impact?
Zulip discussion:
[
https://hibernate.zulipchat.com/#narrow/stream/132096-hibernate-user/topi...]
(
https://hibernate.atlassian.net/browse/HHH-16061#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16061#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:5a2a1e8 )