-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate native SQL support for user defined functions
PostPosted: Wed May 25, 2011 8:33 pm 
Newbie

Joined: Wed May 25, 2011 8:27 pm
Posts: 1
Hi All,
I am using Hibernate 3.6.5, and using native sql to call a query. I am using the method session.createSQLQuery(finalquery);
My query has user defined functions in the query, something like "Select GETSUMMARYVIEWPARTIES(aoi.AOITARGETPFI),aoi.NAME from AOI aoi"
When I run this query in SQL client(squirrel) I get the required results but when I run it using hibernate session I get the below error.
"ERROR org.hibernate.util.JDBCExceptionReporter - ORA-00904: "GETSUMMARYVIEWPARTIES": invalid identifier"

I would like to know if native sql creation in hibernate supports calling of user definer functions.

Regards


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.