READ Free Dumps For Oracle- 1z0-898
Question ID 4578 | Which two of the following statements are true of embeddable classes? (Choose two) |
Option A | A. An embeddable class must not be used to represent the state of another embeddable class. |
Option B | B. Null comparison operations over embeddable classes are not supported in the Java Persistence query language. |
Option C | C. An embeddable class must not contain a relationship to an entity. |
Option D | D. An embeddable class can be the key of a Map relationship. |
Correct Answer | B,D |
Question ID 4579 | The department entity has a unidirectional OneToMany relationship to the employee entity. The developer wants to model this relationship as a java.util.map such that the key of map is true employee name. The primary key of the Employees entity is empId, an integer. |
Option A | A. @OneToMany (targetEntity = Employee.class) @MapKeyClass (string.class) |
Option B | B. @OneToMany @mapKey (name = “name”) map < integer, Employee> Employees; |
Option C | C. @OneToMany @MapKeyJoinColumn (name = “name”) map <String, Employee> employees; |
Option D | D. @OneToMany @mapsId (name = “name”) map <String, Employee> employees; |
Correct Answer | B |