Keshav Murthy Srinivas wrote: > We have Registration form in our application developed using turbine 2.2, > and on click of save button the data is getting saved in MS SQL database and > a unique registration ID is generated in the code and saved in table and > also displayed to the user. The table column in which this ID is stored is > also the Primary Key column. However if the save button is clicked by > multiple users at same time we are getting exception because of primary key > violation. My question is how can we avoid getting this exception when > multiple savings happen at same time?
TurbineUniqueId.getUniqueId() may help you here. But the database integrated solution will work as well. Bye, Thomas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
