1Z0-898 · Question #35
A developer has created a deep entity class hierarchy with many polymorphic relationships between entitles. Which inheritance strategy, as defined by the inheritance Type enumerated type, will be…
The correct answer is A. Single table-per-class-hierarchy (InheritanceType.SINGLE_TABLE). The Single Table per Class Hierarchy Strategy This strategy provides good support for polymorphic relationships between entities and queries that cover the entire entity class Note:Enum InheritanceType: A single table per class hierarchy. A strategy in which fields that are…
Question
A developer has created a deep entity class hierarchy with many polymorphic relationships between entitles. Which inheritance strategy, as defined by the inheritance Type enumerated type, will be most performed in this scenario?
Options
- ASingle table-per-class-hierarchy (InheritanceType.SINGLE_TABLE)
- BJoined-subclass (inheritanceType. JOINED)
- CTable-per-concrete-class (inheritanceType.TABLE_PER_CLASS)
- DPolymorphic join table (inheritanceType. POLYMORPHIC_JOIN_TABLE)
How the community answered
(46 responses)- A83% (38)
- B2% (1)
- C9% (4)
- D7% (3)
Explanation
The Single Table per Class Hierarchy Strategy This strategy provides good support for polymorphic relationships between entities and queries that cover the entire entity class Note:Enum InheritanceType: A single table per class hierarchy. A strategy in which fields that are specific to a subclass are mapped to a separate table than the fields that are common to the parent class, and a join is performed to instantiate the subclass. *TABLE_PER_CLASS A table per concrete entity class. Not D: There is no such thing as inheritanceType.POLYMORPHIC_JOIN_TABLE.
Topics
Community Discussion
No community discussion yet for this question.