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?
A.
1. @Entity(name=”VEHICLE”) public class Truck {
2. @ld int vehld;
3. double payload;
4-i
B.
1. @Entity(table=”VEHICLE”) public class Truck {
2. @ld int vehld;
3. double payLoad;
4-}
C.
1.©Embedded @Table(“VEHICLE”) public class Truck {
2. @ld int vehld;
3. double payload;
4-i
D.
1.©Entity @Table(name=”VEHICLE”) public class Truck {
2. @ld int vehld;
3. double payload;
4.1