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 4614

The developer has modeled student interests as a set <String>:
@Entity public class Student {
@Id int student Id;
string name;
@ElementaryCollection
Set <String> Interests;
. . .
}
The developer wants the values of this set to be stored using a column named student_interests. Select the item below that accomplishes this task:
 

Option A

A.    @ElementaryCollection
@Column(name = “student_interests”) Set <string> interests;
 

Option B

B.    @ElementaryCollection (column = “student_intersets”) Set<String> interests;
 

Option C

C.    @ElementaryCollection @CollectionTable (column = “student_intersets”) Set<String> interests;
 

Option D

D.    @ElementaryCollection @CollectionTable (column = @column(name = “student_interests”)) Set <String> interests;
 

Correct Answer A
Explanation


Question ID 4615

The embeddable class ContractInformation is used in an element collection of the Employee entity.
@Entity
Public class Employee {
@Id int empId;
@ElementaryCollection Set <ContractInformation> info;
. . .
}
Assume that the phone class is an entity and that address is an embedded class.
Which two of the code segments below can be used to model the state of ContractInformation? (Choose two)
 

Option A

A.    @OneToMany Set <phone> phones;
 

Option B

B.    @Embeddable Address address;
 

Option C

C.    @ManyToOne phone phone;
 

Option D

D.    @ElementaryCollection <Phone> phones;
 

Option E

E.    @OneToOne Address address;
 

Correct Answer B,C
Explanation

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