Multiple choice technology architecture

Select the Element Tag used for pointing the Table name in Hibernate mapping file?

  1. <generator class=”hello”>

  2. <property name=”customerId” column=”CUSTOMER_ID”>

  3. <class name=”book.sample.vo.PurchaseOrderVO” table=”purchase_order”>

  4. <id name=”orderNbr” column=”ORDER_NBR” unsaved-value=”0”>

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

The tag in Hibernate mapping files includes a table attribute that specifies the corresponding database table name. While the tag maps individual columns to class attributes, only the tag defines the overall table association. Option C correctly demonstrates this with table="purchase_order".