Re: Data Model Design Q: Translation
Re: Data Model Design Q: Translation
- Subject: Re: Data Model Design Q: Translation
- From: "I. Savant" <email@hidden>
- Date: Wed, 12 Jul 2006 16:03:03 -0400
Ben:
I left out one aspect of your question in my reply:
If "Coin" is a generic entity and you're dealing with individual
subtypes such as "Penny" and "Nickel" (which are sub-entities of
"Coin"), create an abstract "Coin" entity and set it as the parent of
"Penny", "Nickel", and so on. "Coin" will have the basic attributes
common to all coins while "Nickel" defines its own particulars.
--
I.S.
On Jul 11, 2006, at 4:38 PM, Ben Lachman wrote:
I'm wondering how to design my data model so that I can include a
substitution/translation object in my model. Basically I want an
object that says 3 of this thing is equal to 4 of that thing, where
the things are of the same class. A basic example would be
substituting change: 5 pennies are equal to 1 nickel, 4 nickels
are equal to 2 dimes, etc. The inverse of these is always true as
well. This makes sense and seems pretty simple, but I can't figure
out a decent way of doing this within the xcode data modeler. What
I'd like is something like this:
[ Coin ] <---->> [ Substitution ] <<----> [ Coin ]
where [ Coin ] has a substitutions to-many relationship and
[ Substitution ] has a pair of amounts (5 and 1 for instance) and
relationships (to the nickel and penny coin objects).
Does anyone have an idea of how to do this in xcode?
Thanks,
->Ben
--
The user's going to pick dancing pigs over security every time. —
Bruce Schneier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden