in reply to Re: Re: SQL Joins across Subclasses
in thread SQL Joins across Subclasses
What do you mean by "equate", and why is that a blunder? Our design for this object-oriented API is generally to allocate a separate table to each class that requires persistence. More specifically, if a class has a one-to-one relation with a particular attribute, that attribute gets a place in the table for the class. If there is a one-to-many relation then we have a separate table for the attributes, keyed to and constrained by a unique id in the class's primary (parent) table. If this is what you're suggesting is a blunder, I'm wondering what terrible fate should have befallen us in the previous four years of development :^)
As to the rest of your comment, I'm leaning toward the three table layout, although since the subclasses in my object model will require all of the contents in Asset and all of the contents in either DocumentAsset or MediaAsset, a join I think is more appropriate than a view. I think of views as more for taking a subset of data from several tables, but this is really a combination of everything keyed to a unique id.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: SQL Joins across Subclasses
by herveus (Prior) on Jan 13, 2003 at 14:15 UTC | |
Re: Re: Re: Re: SQL Joins across Subclasses
by autarch (Hermit) on Jan 16, 2003 at 05:57 UTC |