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 4574

The developer wants to define a unidirectional relationship from the customer entity to the order entity and map this relationship using a foreign key mapping strategy.
Which one of the pairs of classes below correctly achieves this task?

}
 

Option A

A.    @Entity public class Customer {
@Id int customerId;
@OneToMany @JoinColumn (name = “CUST_ID”) Set <Order> orders;
. . .
}
@Entity public class order {
@Id int orderId;
. . .
}
 

Option B

B.    @Entity public class Customer { @Id int customerId;
@OneToMany Set <Order> orders; . . .
}
@Entity
@JoinColumn (names = “CUST-ID”, referencedColumnName = “customerId”)
public class order {
@Id int order Id;
. . .
}
 

Option C

C.    @Entity public class Customer {
@Id int customerId;
@OneToMany (JoinColumn = @joinColumn (name = “CUST_ID”) Set <Order> orders;
. . .
}
@Entity public class order {
@Id int orderId;
. . .
}
 

Option D

D.    @ Entity public class Customer {
@Id int customerId;
@OneToMany (JoinColumn = @JoinColumn (name = “CUST_ID”), table = “”ORDER) Set
<Order> orders;
. . .
}
@Entity public class order {
@Id int orderId;
. . .

Correct Answer A
Explanation


Question ID 4575

A developer who is designing entity classes to map a legacy database encounters a table called STUDENT_RECORD.
This table has two columns, STUDENT_ID and STUDENT_INFO_ID. The primary key of this table consists of both columns, and there is a unique constraint on each info column.
The STUDENT_ID column is foreign key to the STUDENT table and STUDENT_INFO_ID column is a foreign key to the STUDENT_DAT table.
What entity classes and relationships can the developer use to model these tables and relationship?(Choose two)
 

Option A

A.    Model the student table as a student entity and STUDENT_DATA table StudentData entity. Model the STUDENT_RECORDS table as bidirectional many-to-many relationship between the student entity on the student data entity.
 

Option B

B.    Model the STUDENT table as a Student entity and the STUDENT-DATA table as a StudentData entity. Model the STUDENT_RECORD table as a bidirectional one-to-one relationship between the student entity and the StudentData entity.
 

Option C

C.    Model the STUDENT table as a Student entity and the STUDENT-DATA table as a StudentData entity. Model the Student-Records table as a student record entity. Create a many-to-one one relationship from the StudentRecord entity to the student entity and many-to-one relationship from the student entity to the StudentData entity and one-to-many relationship from the StudentData entity to the StudentRecord entity.
 

Option D

D.    Model the STUDENT table as a Student entity and the STUDENT-DATA table as a StudentData entity. Model the STUDENT-RECORD table as a StudentRecord entity. Create a bidirectional one-to-one relationship between the StudentRecord entity and bidirectional one-to-one relationship between the Student Record entity and the Student Data entity.
 

Correct Answer A,C
Explanation

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