READ Free Dumps For Oracle- 1z0-898
Question ID 4570 | Given two entities with one to-one association: |
Option A | A. @OneToOne (optional = false) personDetail detail; |
Option B | B. @OneToOne (optional = false) |
Option C | C. @ OneToOne (orphanremoval = true) PersonDetail Detail; |
Option D | D. @ OneToOne (cascade = ORPHAN _ DELETE) @mapsId |
Correct Answer | C |
Question ID 4571 | An entity person is mapped to a table PERSON and has a collection-valued persistence field otherUsedNames that stores names used by a person. The otherUsedNames field is mapped to a separate table called NAMES. Which code fragment correctly defines such field? |
Option A | A. @ElementCollection (name = “NAMES”) |
Option B | B. @ElementCollection |
Option C | C. @ElementCollection |
Option D | D. @ElementCollection |
Correct Answer | D |