Multiple choice technology programming languages

What is the root level element in a hibernate mapping file?

  1. <session-factory>

  2. <hibernate>

  3. <hibernate-configuration>

  4. None

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

The root element of a Hibernate configuration file (hibernate.cfg.xml) is . This element contains the child element which holds the database connection and mapping configurations. Option A is a child element, not the root. Option B is not a valid Hibernate configuration element.