If the name is defined as a PK I think you shouldn't have any problem...

On Tue, 2003-07-29 at 03:46, Jean-philippe VIGNIEL wrote:
> What appens if two persons create the same object at the same time. With 
> the default transaction mode, i think  (but i can be wrong) that the 
> object can be created twice.
> 
> By example;
> 
> User1: select * from object where name="bob"->nothing  so it's ok
> User2: select * from object where name="bob"->nothing so it's ok
> User1: create "bob"
> User2: create "bob"
> User1: close transaction
> User2: Close transaction
> 
> And there are two bob objects within the database.
> 
> 
> Before EJB tomanage this case we did a select for update. Perhaps it's 
> possible to set the transaction mode to serialized for the create method???
> 
> Thanks for your advice about with subject?
> 
> 

-- 
Eduardo H. Ram�rez Rangel       

Centro de Sistemas Inteligentes, ITESM
[EMAIL PROTECTED] / [EMAIL PROTECTED]

5o. Piso Torre Sur CETEC, ITESM Campus Monterrey
(52-81) 8328-4380, 83-58-2000. Ext. 5134



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to