Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjY3M2JiMjBl...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16077?atlOrigin=eyJpIjoiYjY3M2...
) HHH-16077 (
https://hibernate.atlassian.net/browse/HHH-16077?atlOrigin=eyJpIjoiYjY3M2...
) Added named native queries cannot specify result-class (
https://hibernate.atlassian.net/browse/HHH-16077?atlOrigin=eyJpIjoiYjY3M2...
)
Issue Type: Bug Assignee: Unassigned Created: 20/Jan/2023 13:44 PM Priority: Major
Reporter: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Using EntityManagerFactory#addNamedQuery with a native-query, when we later create a query
from the named memento, trying to pass a result-class fails. I.e.
final NativeQuery<String> nativeQuery = session.createNativeQuery( "...",
String.class );
session.getSessionFactory().addNamedQuery( "the_name", nativeQuery );
final Query<String> namedQuery = session.createNamedQuery( "the_name",
String.class );
fails on that last line passing in String.class
(
https://hibernate.atlassian.net/browse/HHH-16077#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16077#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:fa7bc5f )