Sigh.

Being down that road before (with MySQL for reasons to sinister to mention): stop with that crap before it's too late! You will really, really regret it once you come up with problems with daylight saving time and similar stuff.

You have been warned...

Cheers, Anjo

Am 04.07.2007 um 17:50 schrieb Q:

That was my fall back option, but I managed to get it to work the way I wanted by subclassing NSTimestamp and using it as a custom data type.

On 04/07/2007, at 10:57 PM, Mike Schrag wrote:

You could always just set your data type to a long and write cover methods on your EO that take NSTimestamp and just them them into .getTime() and new NSTimstamp(long) -- equiv to System.currentTimeMillis, basically (/1000 = unix time). With a little eogenerator magic and a common userInfo attribute, you could probably have that autogenerating also.

ms

On Jul 4, 2007, at 8:51 AM, Kieran Kelleher wrote:

It is possible...

On Jul 4, 2007, at 2:47 AM, Q wrote:

Can anyone tell me if it is possible to define an NSTimestamp eomodel property to be represented in the database as an integer column rather than a date/time column, ideally in seconds ( as a unixtime value).

--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ kieran_lists%40mac.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan% 40gmail.com

This email sent to [EMAIL PROTECTED]



--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/krank% 40logicunited.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to