Re: Back-button and stateful components
Re: Back-button and stateful components
- Subject: Re: Back-button and stateful components
- From: "Sako!" <email@hidden>
- Date: Fri, 5 Nov 2004 14:35:08 +0100
Hello Pierre,
i have MS sql,
what do you mean with "Other applications you have would do best to rely on
the same sequence."?
how can i rely on the same sequence?
the real problem is, i create the object in WO add it to the EC, at this
time the Object has correct PK(hopfullely). before i call EC.SaveChanges().
another Application has already inserted a row in the Table with the same
PK. after that WO tries to insert row with invalid PK.
this problem is also explaind in the WO documentation unfortunately without
really good solution :(
----- Original Message -----
From: email@hidden
To: email@hidden
Sent: Friday, November 05, 2004 10:06 AM
Subject: RE: EOF inserts PK automatically
Sako!
The exact behavior depends on the database specific adaptor plug-in. The
Oracle adaptor, as many others, gets its primary keys from a sequence. Thus
no two WebObjects applications can get the same primary key. Other
applications you have would do best to rely on the same sequence.
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden