Re: GETDATE() in EO??
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.