davide ficano (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a673f0...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNGYzZDY5YTNl...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16191?atlOrigin=eyJpIjoiNGYzZD...
) HHH-16191 (
https://hibernate.atlassian.net/browse/HHH-16191?atlOrigin=eyJpIjoiNGYzZD...
) Since Hibernate ORM 6.x the FetchType.EAGER called from native queries raises error (
https://hibernate.atlassian.net/browse/HHH-16191?atlOrigin=eyJpIjoiNGYzZD...
)
Issue Type: Bug Affects Versions: 6.1.7 Assignee: Unassigned Components:
hibernate-orm-modules Created: 17/Feb/2023 00:43 AM Environment: Hibernate 6.1.7
openjdk version "17.0.6" 2023-01-17
MacOS Ventura 13.2.1
Any Database Priority: Major Reporter: davide ficano (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a673f0...
)
Since Hibernate ORM 6.x the FetchType.EAGER raises the following error when called from
native queries
could not initialize proxy [org.hibernate.domain.Building#0] - no Session
Using the same @Entity with hibernate createQuery() , everything works as expected
I’ve create a test case available on github (
https://github.com/unipa/Hibernate-Native-Query-EAGER-regression )
After cloning the repo, just run mvn package
(
https://hibernate.atlassian.net/browse/HHH-16191#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16191#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#100216- sha1:3fa9804 )