• 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: GETDATE() in EO??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GETDATE() in EO??


  • Subject: Re: GETDATE() in EO??
  • From: Art Isbell <email@hidden>
  • Date: Sun, 1 Aug 2004 14:53:04 -1000

On Aug 1, 2004, at 11:57 AM, Lotsa Cabo wrote:

Back on SQL2K, when designing a database, I could set the "Default
Value" of any column to the "GETDATE()" function.  I have two
questions...

1. Is this possible with OpenBase; if so, how?

Use OpenBase Manager for such things.

2. If it is possible to set this type of default value, is it possible
to define this in EOModeler and have EOModeler define the function for
the column in OpenBase?

EOModeler does not support setting default values. These can be set in awakeFromInsertion() in the EO class.


In this particular case, "new NSTimestamp()" should return a timestamp very close to that returned by the database server's database-specific function if the DB and application servers' clocks are synchronized with a time server and they're in the same time zone. In the past, I have modeled database-specific functions/procedures as EOStoredProcedures which EOModeler supports.

Aloha,
Art
_______________________________________________
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.


References: 
 >GETDATE() in EO?? (From: Lotsa Cabo <email@hidden>)

  • Prev by Date: Re: Long Response Problems
  • Next by Date: Re: Editing Context Choices
  • Previous by thread: GETDATE() in EO??
  • Next by thread: Unique Index in EO
  • Index(es):
    • Date
    • Thread