-->
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: Importance of stored procedure with insert and update query
PostPosted: Mon Nov 01, 2010 7:17 pm 
Newbie

Joined: Mon Nov 01, 2010 10:06 am
Posts: 1
Hi,

We had SQLsever 200 Database .We need to use hibernate newly.
while i am using hibernate to call stored procedures , i observed that stored procedures with select queries are working fine.
But, i had faced a problem while using the stored procedure with insert and update queries having both in the same stored procedure and by depending on the existance of the record(by Id), either insert or update queries will be called.
How can i call this SP using hibernate.Example: SP NAME: AddUserDetails(?,?,?).
The input parameters are userid,date,language.

Quick and detailed explanation with example is appreciated.


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.