nerdexam
Oracle

1Z0-860 · Question #277

Which example of Java Persistence identity definitions is portable and correct assuming NO mapping descriptor is present?

The correct answer is B. @ldClass(com. acme. LineltemPK. class)〦ntity. See the full explanation below for the reasoning.

Question

Which example of Java Persistence identity definitions is portable and correct assuming NO mapping descriptor is present?

Options

  • A〦ntity public class A {
  • B@ldClass(com. acme. LineltemPK. class)〦ntity
  • C@Entity public class Project { @ld@GeneratedValue(strategy=TABLE) public String getProjectldQ
  • D〦ntity

How the community answered

(57 responses)
  • A
    9% (5)
  • B
    74% (42)
  • C
    4% (2)
  • D
    14% (8)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice