Re: EOAttribute's Data Type question
Re: EOAttribute's Data Type question
- Subject: Re: EOAttribute's Data Type question
- From: "Ricardo J. Parada" <email@hidden>
- Date: Fri, 30 Oct 2009 01:23:38 -0400
It's good to hear that!! :-D
Ricardo
On Oct 29, 2009, at 9:50 PM, Chuck Hill wrote:
On Oct 29, 2009, at 6:42 PM, Mike Schrag wrote:
The only thing I ever touch are prototype, optionality, pk, and
locking. I don't change any other values.
That sounds like a sound policy to me. If you need to change
something else, make a new prototype!
Chuck
On Oct 29, 2009, at 8:59 PM, Ricardo J. Parada wrote:
Thanks Chuck. Hmmm... that makes my head spin. :-)
Let me ask you something. When you create a new attribute I
assume one of the first things you do is set the prototype.
After setting the prototype do you ever mess with the Data Type
defaulted by the entity modeler (in general) for traditional
attributes such as integers, amounts, dates, strings, booleans,
integer primary/foreign keys?
I'm looking at a bunch of eomodels that were created without
prototypes and they all differ so much in the valueType for string
attributes for example. These models were sometimes edited by
hand in a text editor.
Thanks,
Ricardo
On Oct 29, 2009, at 6:14 PM, Chuck Hill wrote:
On Oct 29, 2009, at 3:04 PM, Ricardo J. Parada wrote:
I decided to move this question into its own email thread:
How does the Data Type chosen for an attribute in entity modeler
affect me?
For example, I see different options related to dates / times:
i.e. Date, Date (MSSQL), Time, Timestamp.
For new attributes I just leave that with the default once I
pick the prototype. But for existing attributes where I have
the Data Type already selected and no prototype chosen, and then
choose a prototype I'm not sure how changing Data Type would
affect me.
For example, if my existing attribute named "creationDateTime"
had a Data Type of Timestamp selected and no prototype. And then
I set the prototype to dateTime and change the Data Type to
Date. Will that affect me somehow? :-)
Short answer: yes.
See Value Type here http://wiki.objectstyle.org/confluence/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting
That is what this is selecting.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden