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)- A9% (5)
- B74% (42)
- C4% (2)
- D14% (8)
Community Discussion
No community discussion yet for this question.