.... ok, just kidding, could not resist direct answer in last email ;-)
Anyway, you can make a CUSTOM ATTRIBUTE and a custom immutable java
class to handle the conversion logic in and out of the DB on the fly.
AFAIK, this is documented somewhere in EOF docs, but I don't know off
top of my head where. However here is an example of implementing a
custom attribute for encrypting/decrypting on the fly in and out of
the database. this will show you how to do it.
http://homepage.mac.com/kelleherk/iblog/C729512539/E2033071041/
index.html
A real simple example of a custom attribute is the Boolean mapped to
CHAR(5) that is well documented in various places and in Practical
WebObjects book. In that case there were existing methods available
to specify the custom attribute conversion, so no custom java class
needed to be written. Depending on the class types in question and
what you desire you may or may not get a quick shortcut
implementation such as that.
Regards, Kieran
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/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]