S

Satya • 3.38K Points
Extraordinary

Q. Which annotation is used to generate primary key automatically?

  • (A) @Auto
  • (B) @GeneratedValue
  • (C) @Identity
  • (D) @PrimaryValue
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Hibernate
  • Hashtags:

Explanation by: Satya
@GeneratedValue automatically generates primary key values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.