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,


READ Free Dumps For Oracle- 1z0-898





Question ID 4568

Given two entities with many-to-many bidirectional association between them:
@Entity public class Employee {
Collection projects; // more code here }
and
@Entity public class Project { Set<Employee> emps;
// more code here
}
What set of annotations correctly defines the association?
 

Option A

A.    @manyToMany on the projects field,
@manyToMany (mappedBy= “projects”) on the emps field
 

Option B

B.    @manyToMany (mappedBy = emps) on the projects field, @manyToMany on the emps field
 

Option C

C.    @manyToMany (targetEntity = project.class) on the projects field, @manyToMany (mappedBy = “projects”) on the emps field
 

Option D

D.    @manyToMany (targetEntity =project.class) on the projects field, @manyToMany on the emps field
 

Correct Answer C
Explanation


Question ID 4569

An application wants to utilize side effects of cascading entity manager operations to related entities.
Which statement is correct?
 

Option A

A.    The persist operation is always cascaded to related entitles for one-to one and one-to-many relationships.
 

Option B

B.    To minimize the effect of the remove operation applied to an entity participating in a many-to-many relationship the remove operation should he cascade to entities on both sides of the relationship.
 

Option C

C.    The persist operation applied to a new entity x is cascaded to entities referenced by x if the relationship from x to these other entities is annotated with the cascade=PERSIST or cascade=ALL annotation element value.
 

Option D

D.    The remove operation applied to a removed entity x is cascaded to entities referenced by x of the relationship from x to these other entities is annotated with the cascade = REMOVE of
cascade = ALL annotation element value.
 

Correct Answer C
Explanation

Send email to admin@getfreedumps for new dumps request!!!