Date attributes
Date attributes
- Subject: Date attributes
- From: Steve Sharman <email@hidden>
- Date: Mon, 19 Jan 2004 17:43:21 +0000
If anyone is using WO with Sybase (12.5 on Mac OS X), perhaps you could
help me with the following.
I've got an attribute timeMade in one of my objects in EOModeler. I've
set it up with a Value Class of NSTimestamp, external type datetime and
a Value Type of "T". When saving the model, I get the following
messages from the Consistency check:
Attribute timeMade in Entity ExpNodeComments has a valueClassName of
NSTimestamp, but it doesn't have a valueFactoryMethodName.
Attribute timeMade in Entity ExpNodeComments has a valueClassName of
NSTimestamp, but it doesn't have a adaptorValueConversionMethodName.
I can generate a D2JC application and use this entity without problems
- including entering a date value that is correctly stored in the
database - I can see it using isql.
If I change the value class to NSCalendarDate, then the consistency
message goes away, and the date also seems to be stored correctly in
the database. Which value class should I be using? I'd understood from
previous messages on the list archive that NSTimestamp was recommended
for use in WO 5.0 and above (has NSCalendarDate been deprecated or
something?), but I've not been able to find anything that is specific
to Sybase.
Thanks in advance for any advice.
best regards,
-- Steve
_______________________________________________
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.