domainmodel

0
we can use both one to one associations or generalization so when to use  one to one association and generalization
asked
2 answers
6

Hi Manikanth Sama, 

 

Both inheritance and one-to-one associations have their advantages and disadvantages. Based on your situation you need to decide what is better for a particular entity.

There are, however, a few situations where a clear answer can be given:

  • Use one-to-one associations for entities with:

    • a high number of transactions on the different sub entities (we consider multiple changes or creates per second as being high)
    • only a handful common attributes — if you feel that it isn’t worth creating associated objects for the information, it isn’t worth inheriting either
  • Use inheritance for entities:

    • that always require the information from the associated objects, and users intensively search and sort on the associated attributes

 

Additionally you can find more information from this mendix document.. 

https://docs.mendix.com/refguide/generalization-and-association/

 

Hope this helps you. 

answered
2

Hey Manikanth,

You might wanna look at this document,

https://docs.mendix.com/refguide7/generalization-and-1-1-association/

 

Hope it helps!

answered