nerdexam
Oracle

1Z0-860 · Question #29

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 grossAmmount field. 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 grossAmmount field
  • D@JoinColumns to the grossAmmount field

How the community answered

(51 responses)
  • A
    8% (4)
  • B
    4% (2)
  • C
    73% (37)
  • D
    16% (8)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice