Does the number of associations matter in Non-Persistable entities?
I understand that having many associations between two Persistable entities hinders the overall performance. But what about Non-Persistables? How are their relations stored and how does having many associations between them affect the app? For example, assume we have Entities A and B, Entity B can relate to entity A in 10 different ways, I have the option of creating 10 (*-1) associations or find a workaround like adding an Enum attribute to Entity A and filter based on it on retrieval. Which method would be more efficient?
I think as a standard practice using and enumeration instead of creating association is better ,Apart from performance , It will improve the readability and maintainability at the same time.