What could be a sample mapping specification for modeling above?
You may try the following: CLASS A [TABLE A] PRIMARY_KEY name ; CLASS B [TABLE B] PRIMARY_KEY name RELATIONSHIP vectorC REFERENCES collectionC WITH cId ; CLASS C [TABLE C] PRIMARY_KEY name RELATIONSHIP objB REFERENCES B WITH bId ; COLLECTION_CLASS collectionC COLLECTION_TYPE VECTOR ELEMENT_CLASS C // collectionId below is an attribute of C which has a common value // for all the elements in a collection PRIMARY_KEY collectionId ; COLLECTION_CLASS collectionA COLLECTION_TYPE VECTOR ELEMENT_CLASS A // collectionAId below is an attribute of A which has a common value // for all the elements in a collection PRIMARY_KEY collectionAId ; CLASS D [TABLE D] PRIMARY_KEY name // bcID is an attribute of D which whose value is used to get all // collection elements from collectionA which may have objects from // any of the classes A, B or C RELATIONSHIP vectorBC REFERENCES CollectionA WITH bcID ; CLASS E [TABLE E] PRIMARY_KEY id; RELATIONSHIP vectorBC REFERENCES CollectionA WITH bcID
Related Questions
- write specification for ISO10646-C properties, write sample implementations of the mapping routines, and add these to xterm, GTK, and other applications and libraries. Any volunteers?
- I am a mechanical engineer and would like to specify FlexFlow Elbow on all of my future projects. Do you have a sample specification and detail drawings?
- What could be a sample mapping specification for modeling above?