-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: possible specify an EntityGraph with a NativeQuery
PostPosted: Thu Dec 15, 2016 11:14 am 
Newbie

Joined: Mon Dec 12, 2016 3:45 pm
Posts: 16
Is it possible to specify an entity graph when using a native query?

I am getting:
Code:
Java.lang.ClassCastException: org.hibernate.internal.SQLQueryImpl cannot be cast to org.hibernate.internal.QueryImpl


when I try an specify an entityGraph.


Top
 Profile  
 
 Post subject: Re: possible specify an EntityGraph with a NativeQuery
PostPosted: Thu Dec 15, 2016 11:22 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
EntityGraphs is meant to be used with entity queries: JPQL/HQL and Criteria API only.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.