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 4580

The developer wants to override the default mappings for an embeddable class Address used by the customer entity.
The Address class is defined as follows:
@Embeddable public class Address (
private String street;
private String city;
private String country;
. . .
)
Assume that NO mapping descriptor is present. Which code segment below shows the correct way to override the default mapping for address?
 

Option A

A.    @AttributeOverrides ({
@AttributeOverride (name = “street”, column = @Column (name = ADDR_STREET)), @AttributeOverride (name = “city, column = @Column (name = ADDR_CITY)), @AttributeOverride (name = “country, column = @Column (name = ADDR_COUNTRY)), }}
@Embedded Address addr;
 

Option B

B.    @ AttributeOverrides ({
@AttributeOverride (name = “street”, column = @Column (name = “name_STREET”)), @AttributeOverride (name = “city, column = @Column (name = “name_CITY”)), @AttributeOverride (name = “country, column = @Column (name = “name_COUNTRY”)), }}
@Embedded Address addr;
 

Option C

C.    @ AttributeOverrides ({
@AttributeOverride (name = “street”, column (name = “name_STREET”)),
@AttributeOverride (name = “city, column (name = “name_CITY”)),
@AttributeOverride (name = “country, column (name = “name_COUNTRY”)),
}}
@Embedded Address addr;
 

Option D

D.    @AttributeOverrides ({
@AttributeOverride (name = “addr.street”, column = @Column (name = ADDR_STREET)), @AttributeOverride (name = “addr.city”, column = @Column (name = ADDR_CITY)), @AttributeOverride (name = “addr.country”, column = @Column (name = ADDR_COUNTRY)), }}
@Embedded Address addr;
 

Correct Answer D
Explanation


Question ID 4581

The Contact Information embeddable class contains address information as well as a reference to a phone entity. The ContactInformation class is defined as follows:
@Embeddable public class ContactInformation {
String street;
String city;
@OneToOne Phone phone; }
The developer wants to use this class in an Employee entity, but override the default name of the foreign key to the Phone entity. Which of the code segments shows how to do this correctly?
 

Option A

A.    @Entity public class Employee {
@Id int empId;
@AssociationOverride (name = empInfo.phone”, joinColumn = @JoinColumn)
(name = “INFO_FK”))
ContactInformation empInfo;
}
 

Option B

B.    @AssociationOverride (name = “empInfo.phone”, joinColumn = “INFO_FK”) @Id int empId;
@ContactInformation empInfo;
}
 

Option C

C.    @ AssociationOverride (name = “empInfo.phone”, joinColumn = “INFO_FK”) Entity public class Employee {
@Id int empId;
}
 

Option D

D.    Entity public class Employee {
@Id int empId;
@ AssociationOverride (name = “empInfo.phone”, joinColumn = “INFO_FK”)
ContactInformation empInfo;
}
 

Correct Answer A
Explanation

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