Valid 1Z0-898 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-898 Exam! ExamDiscuss.com now offer the newest 1Z0-898 exam dumps, the ExamDiscuss.com 1Z0-898 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-898 dumps with Test Engine here:
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)
Correct Answer: B,C
Explanation/Reference: B: Embeddable classes have the same rules as entity classes but are annotated with the javax.persistence.Embeddable annotation instead of @Entity. Example: @Embedded ZipCode zipCode; C: @ManyToOnedDefines a single-valued association to another entity class that has many-to-one multiplicity. Example2: @Entity public class Employee { @Id int id; @Embedded JobInfo jobInfo; ... } @Embeddable public class JobInfo { String jobDescription; @ManyToOne ProgramManager pm; // Bidirectional } Reference: javax.persistence, Annotation Type ManyToOne