Re: Using MS SQL Server IDENTITY columns with EO
Re: Using MS SQL Server IDENTITY columns with EO
- Subject: Re: Using MS SQL Server IDENTITY columns with EO
- From: Chuck Hill <email@hidden>
- Date: Thu, 15 Apr 2004 15:22:06 -0700
That won't work. EOF needs to know the PK when it writes the data so
that it can create an EOGlobalID. The only way to use something like
this is to query for the next key value to be used before doing the
insert.
Chuck
On Apr 15, 2004, at 2:52 PM, Robert Walker wrote:
Karl,
I don't have a specific answer to you question, but I do know that EOF
will support database generated keys with other databases. EOF key
generation only kicks in when the primary key is null. So if your
database is setting the IDENTITY field to a value and that is the
primary key in the model I think everything will work fine, as long as
EOF can support the data type.
Someone please correct me if I wrong.
On Apr 15, 2004, at 11:14 AM, Karl Gretton wrote:
Hi,
We have an existing customer-provided database to integrate into
WebObjects. It uses table definitions with the IDENTITY property set
to automatically generate a unique integer primary key.
Has anyone found a way of using this with WebObjects?
Thanks,
Karl Gretton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Robert Walker
www.robertwalker1.com
homepage.mac.com/robertwalker1
"There are 10 kinds of people in the world. Those who think in binary
and those who don't."
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.