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
- @Entity(name="VEHICLE") public class Truck {
- B
- @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)- A4% (2)
- B15% (7)
- C6% (3)
- D74% (35)
Community Discussion
No community discussion yet for this question.