Re: OO and relation "impedance mismatch"

From: Alfredo Novoa <alfredo_at_ncs.es>
Date: Thu, 07 Oct 2004 15:23:11 GMT
Message-ID: <41655f5b.20788843_at_news.wanadoo.es>


On Thu, 7 Oct 2004 14:35:24 +0200, "Ja Lar" <jalar_at_nomail.com> wrote:

>How would you represent a relation as an object?

Something like:

new Relation(

  new Tuple(new Value("A", 1),  new Value("B", "a")),
  new Tuple(new Value("A", 2),  new Value("B", "b")),
  new Tuple(new Value("A", 3),  new Value("B", "c"))
);

>Please give an example, and clarify what is the class of such an object.

The class would be a class that is the set of all the possible relation values.

Regards Received on Thu Oct 07 2004 - 17:23:11 CEST

Original text of this message