Which two of the code segments below can be used to model the state of ContractInformation?

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)
A. @OneToMany Set <phone> phones;
B. @Embeddable Address address;
C. @ManyToOne phone phone;
D. @ElementaryCollection <Phone> phones;
E. @OneToOne Address address;

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.