Which of the following is not encouraged by optimization hibernate?
A: Use unidirectional one-to-many associations and do not use two-way pair
B: No one-to-many substitution
C: Configure the object cache without using the collection cache
D: Inheriting classes using explicit polymorphism
Answer: (A)
A summary of the relevant questions:
Optimize the 7 measures that hibernate encourages:
1. Use Many-to-one as much as possible and avoid using single One-to-many
2. Flexible use of unidirectional one-to-many
3. Do not use one-to-many substitution
4. Configure the object cache without using the collection cache
5. One-to-many use bag multi-pair a set
6. Inheritance use display polymorphic Hql:from object polymorphism= "exlicit" to avoid investigation of all objects
7. Eliminate large tables, use level two cache
Interview questions-Optimize the methods that hibernate encourages