InterviewSolution
Saved Bookmarks
| 1. |
Which element of hbm.xml defines maps the unique ID attribute in class to the primary key of the database table? |
|
Answer» The <id> element maps the unique ID attribute in class to the primary key of the database table. The name attribute of the id element refers to the property in the class and the column attribute refers to the column in the database table. The type attribute holds the hibernate mapping type, this mapping types will convert from Java to SQL data type. |
|