-->
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: problem about stored procedure
PostPosted: Mon Oct 16, 2006 6:17 am 
Newbie

Joined: Mon Oct 16, 2006 5:01 am
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.1
Name and version of the database you are using:
MS SQL Server

our stored procedures in ms sql server are very complex, one stored procedure would include the insert, update and delete, how can I call those stored procedures that mix with delete, insert, update?

i can only get some information from reference now:

<sql-insert callable="true">{call createPerson (?, ?)}</sql-insert>
<sql-delete callable="true">{? = call deletePerson (?)}</sql-delete>
<sql-update callable="true">{? = call updatePerson (?, ?)}</sql-update>

but it seams that one stored procedure have one function.

how can i do about the problem above? Thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 1:10 pm 
Newbie

Joined: Mon Oct 16, 2006 5:01 am
Posts: 2
who can help me? I am really appreciate it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 1:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eh why do you think you can't use the same procedure in every call ?
(there is the limitation though that the sp's have to have the right number and sequence of arguments as hibernate expects....read the docs about that one)

_________________
Max
Don't forget to rate


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.