AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,

Chat with us

READ Free Dumps For Oracle- 1z0-898



Question ID 4570

Given two entities with one to-one association:
@Entity public class Person {
@Id Integer id;
...
}
@Entity public class PersonDetail {
@Id Integer id;
...
}
Which code fragment correctly defines the detail field that PersonDetail instance in removed if the person instance that references it is removed?
 

Option A

A.    @OneToOne (optional = false) personDetail detail;
 

Option B

B.    @OneToOne (optional = false)
@mapsId
PersonDetail Detail;
 

Option C

C.    @ OneToOne (orphanremoval = true) PersonDetail Detail;
 

Option D

D.    @ OneToOne (cascade = ORPHAN _ DELETE) @mapsId
PersonDetail detail;
 

Correct Answer C
Description
Update Date and Time 2016-03-07 10:22:12

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”)
Protected set<String> otherUsedNames = new HashSet () ;
 

Option B

B.    @ElementCollection
@ElementTable (name = “NAMES”)
Protected set<String> otherUsedNames = new HashSet () ;
 

Option C

C.    @ElementCollection
@SecondaryTable (names = “NAMES”)
Protected set<String> otherUsedNames = new HashSet () ;
 

Option D

D.    @ElementCollection
@CollectionTable (names = “Names”)
Protected set<String> otherUsedNames = new HashSet () ;
 

Correct Answer D
Description
Update Date and Time 2016-03-07 10:23:28