• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using MS SQL Server IDENTITY columns with EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Using MS SQL Server IDENTITY columns with EO
      • From: Robert Walker <email@hidden>
References: 
 >Using MS SQL Server IDENTITY columns with EO (From: Karl Gretton <email@hidden>)
 >Re: Using MS SQL Server IDENTITY columns with EO (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: Using MS SQL Server IDENTITY columns with EO
  • Next by Date: Best Practice Displaying Option Text Field
  • Previous by thread: Re: Using MS SQL Server IDENTITY columns with EO
  • Next by thread: Re: Using MS SQL Server IDENTITY columns with EO
  • Index(es):
    • Date
    • Thread