S

Satya • 3.38K Points
Extraordinary

Q. Which annotation specifies the primary key?

  • (A) @Column
  • (B) @Id
  • (C) @Primary
  • (D) @Key
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Hibernate
  • Hashtags:

Explanation by: Satya
@Id marks the primary key field in an entity.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.