Re: Business objects, subset of collection



Isn't views a good tool for providing mappings othan than 1:1?

Depends upon which flavor of views you are talking about.

I am talking about database or SQL views.

But mixing paradigms is usually a very bad idea from an OOA/D
perspective once one is outside the realm of CRUD/USER processing.
That's because the data structures needed to optimize the customer's
problem solution are usually not the same as those needed to optimize
data storage or display and the 1:1 mapping breaks down.

The database schema should be optimized for the customer's problem
solution.

Such optimization utterly defeats the entire relational database model,
which is designed to provide data storage and access that in independent
of the way the data is used.

1. Do you have any references to support the claim that the
"relational database model" is designed to provide data storage and
access that in independent of the way the data is used?
2. If (1) would be true, how does that fact utterly defeats the entire
model?

I point all this out because it reflects a major disconnect between
OOA/D and the RAD infrastructures. So far your application sounds like
classic CRUD/USER processing. In that case using the RAD paradigm and
infrastructures will probably save you a ton of keystrokes.

Indeed. One could also argue 80-90% of all business applications seem
to be CRUD/USER according to your definition.

That was true in the '60s and CRUD/USER processing is still a major part
of IT. But today the proportion has shrunk substantially, probably down
to the 20-30% range.

Do you have references to a definition of CRUD/USER processing? If we
don't have a working definition, we use of the term seem to be rather
pointless.

But that
will necessarily result in different models than I would use as an OOA/D
guy when solving non-CRUD/USER problems.

Yes, because an OO model would be a network model (with pointers
between
object/records), and not a relational model.

We've been here before, yet you persist in making statements like this.
The reality is that an OOA/D Class Model is normalized using exactly the
same relational rules as an RDB schema.

How do you apply 2NF to your classes?

The differences between an OO
Class Model and a Data Model lie in the way their relational model is
constructed, not in whether they are relational models.

From Wikipedia ("Relational model"): "The fundamental assumption of
the relational model is that all data is represented as mathematical n-
ary relations". Does the apply to an OO class model?

//frebe

.