-->
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.  [ 3 posts ] 
Author Message
 Post subject: Can I include stored procedure in Hibernate Query?
PostPosted: Wed Feb 07, 2007 12:22 pm 
Newbie

Joined: Tue Feb 06, 2007 10:49 am
Posts: 3
Hi, All:

I create a stored procedure on Sybase ASE, and I want to call it inside a query like this:

select * from tableA a, tableB b

where a.id=b.id
and (exec storeprocedure)


My question is: can I write this query using HQL? If not, can I have this query using SQL?

Thanks!


Top
 Profile  
 
 Post subject: mixing sql and stored procedure call
PostPosted: Thu Feb 08, 2007 9:43 am 
Beginner
Beginner

Joined: Wed Nov 15, 2006 4:25 am
Posts: 21
Hi


I have tried it in SQL but couldnt .I am getting Invalid syntax error.I think that you cannot do it in HQL .


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 1:08 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi shantha,


you could call session.connection() connection to call Proc . dont use in HQL

_________________
Dharmendra Pandey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.