Is it possible union the records of two entities

1
Hi, Is it possible to union the records from two different entities provided they have common attributes? I am in such scenario because I need the referencing between the records of two entities and also want to show them in a single list in data grid. Kindly give your suggestions how can I achieve this. Thanks & Regards, Rajnish
asked
1 answers
6

I'd say in this case you'd need to work with generalizations. (As a grid can have just one single entity) In other words, create a generalized entity which has the common attributes both entities share, and put the attributes they do not share on the specialized versions. If you then use the generalized object as grid object, the grid will show both entities, and you can show the common attributes.

So for example, I assume right now you got:

Entity 1

  • Attribute A
  • Attribute B
  • Attribute C

Entity 2

  • Attribute A
  • Attribute B
  • Attribute D

Now the solution would be:

GeneralizationObject X

  • Attribute A
  • Attribute B

Specialization 1

  • Attribute C

Specialization 2

  • Attribute D

For more information on inheritance and specialization, you could look here and here.

answered