Re: [slightly OT] data modeling question
Re: [slightly OT] data modeling question
- Subject: Re: [slightly OT] data modeling question
- From: Miguel Arroz <email@hidden>
- Date: Wed, 7 May 2008 19:47:35 +0100
Hi!
The first idea that comes to my mind is a Characteristic entity
(name might not be the best one, remember I'm not a native english
speaker) with a code or name to identify which is it (color, size,
etc) and a value. Then, relation To-Many from product to characteristic.
Yours
Miguel Arroz
On 2008/05/07, at 19:21, Jaime Magiera wrote:
Heyya,
This is slightly off-topic, but I figure fellow WO developers might
have input: I'm rewriting the store functionality of ThoughtConduit
and need to decide on a more refined version of my EOModel. In
particular, I want Products to be able to handle things such as size
and color (for t-shirts for example). I'm trying to decide how to
approach that. I could subclass Product for each size and color, but
that seems wasteful since only some products are shirts. Other types
of products may or may not have qualifiers such as size or color....
but they may need other types of qualifiers. Alternately, I could
let each group (it's a multigroup system) enter in a list of
subtypes and use relationships on ProductItems to denote whichever.
sigh. It's one of those things where it's best to get the model
right before proceeding. So, I'm racking my brain. Maybe it's time
to take a data modeling class :)
any thoughts?
Jaime Magiera
Sensory Research
http://www.sensoryresearch.net
_______________________________________________
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
Miguel Arroz
http://www.terminalapp.net
http://www.ipragma.com
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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