Oracle
1Z0-860 · Question #50
Given the following entity class: 11. @Entity public class Customer) 12. @ld private int id; 13. private transient String name; 14. private Java. math. BigDecimal grossAmmount; 15.} Which mapping…
The correct answer is C. @Basic to the grossAmmountfield. See the full explanation below for the reasoning.
Question
Given the following entity class: 11. @Entity public class Customer) 12. @ld private int id; 13. private transient String name; 14. private Java. math. BigDecimal grossAmmount; 15.} Which mapping annotation can be added to the fields of this entity?
Options
- A@Column to the name field
- B@Embeddedld to the id field
- C@Basic to the grossAmmountfield
- D@JoinColumns to the grossAmmount field
How the community answered
(27 responses)- A4% (1)
- B11% (3)
- C70% (19)
- D15% (4)
Community Discussion
No community discussion yet for this question.