POSC Specifications: Epicentre Version 3.0 | Logical Data Model |
Add an association entity to the many-to-many relationship between Data_collection and E_and_p_data.
CHANGE ERP_data_collection_many_to_many ALTER ENTITY data_collection; ALTER collection_content ALTER INVERT ALTER TYPE AS data_collection_content ALTER FOR AS part_of; WHERE ALTER dri : sizeof( query( id <* collection_content | id.collection_part :=: SELF) ) = 0; END_ENTITY; ALTER ENTITY e_and_p_data; INVERSE ALTER data_collection ALTER TYPE AS data_collection_content ALTER FOR AS collection_part; END_ENTITY; ADD ENTITY data_collection_content SUBTYPE OF (association) (*<DESC>Defines part of the content of a data collection.*); part_of : data_collection (*<DESC>The data collection which references the instance.*) (*<VERB>be a part of*); collection_part : e_and_p_data (*<DESC>The instance which is part of the collection.*) (*<VERB>specify as a part*); UNIQUE si : part_of, collection_part; END_ENTITY; END_CHANGE;