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.