Multiple choice technology programming languages

element in a mapping file is used to

  1. represent primary key cloumn and assosciate attribute in domain object

  2. map a table with the corresponding class

  3. represent all attributes available in domain object

  4. both 1 & 2

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The element in Hibernate mapping files maps a persistent Java class to its corresponding database table. The first option describes the element mapping the primary key, and the third option describes properties, meaning the fourth option combining them is also incorrect.