S

Satya • 3.38K Points
Extraordinary

Q. Which annotation maps a class to a table name?

  • (A) @Column
  • (B) @Table
  • (C) @JoinColumn
  • (D) @Map
  • Correct Answer - Option(B)
  • Views: 4
  • Filed under category Hibernate
  • Hashtags:

Explanation by: Satya
@Table(name="table_name") maps an entity class to a specific database table.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.