-->
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: how hibernate work with multiple user......
PostPosted: Thu Jun 03, 2010 5:44 am 
Beginner
Beginner

Joined: Sat May 31, 2008 2:35 am
Posts: 30
Location: pakistan
hello
i write a procedure in sql server 2005 in which i use temporary table for some processing after that this table is deleted at the end of the procedure..this temporary table is created with same name each time of the execution of the procedure..

i call this procedure when any user enter in my application suppose there are 100 user enter in my application at the same time and application run the procedure is...

i wanna know that how hibernate handle this situation i mean if some user enter and procedure is call in which temporary table is being created where the second user is at the ending of the procedure in which this temporary table is being deleted then what happen

how hibernate handle this all please kindly tell me is hibernate provide any concurrency on this level... waiting for response


Top
 Profile  
 
 Post subject: Re: how hibernate work with multiple user......
PostPosted: Fri Jun 04, 2010 2:53 am 
Beginner
Beginner

Joined: Sat May 31, 2008 2:35 am
Posts: 30
Location: pakistan
hello no body can tell me about it???....


Top
 Profile  
 
 Post subject: Re: how hibernate work with multiple user......
PostPosted: Fri Jun 04, 2010 3:28 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
I don't see how Hibernate is related to this. It is your code that is creating the table, and you need to solve it in your code. I can see two possible ways. 1. Make sure that the procedure is never executed by more than one use at a time. 2. Create the temporary table with different name every time.


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.