nerdexam
Oracle

1Z0-860 · Question #67

A developer is required to declare a persistent entity named Truck to map to a database table VEHICLE. Which entity class declaration is correct, assuming there is NO mapping descriptor?

The correct answer is D. 1.〦ntity @Table(name="VEHICLE") public class Truck {. See the full explanation below for the reasoning.

Question

A developer is required to declare a persistent entity named Truck to map to a database table VEHICLE. Which entity class declaration is correct, assuming there is NO mapping descriptor?

Options

  • A
    1. @Entity(name="VEHICLE") public class Truck {
  • B
    1. @Entity(table="VEHICLE") public class Truck {
  • C1.〦mbedded @Table("VEHICLE") public class Truck {
  • D1.〦ntity @Table(name="VEHICLE") public class Truck {

How the community answered

(47 responses)
  • A
    4% (2)
  • B
    15% (7)
  • C
    6% (3)
  • D
    74% (35)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice