Which of the following are most common configuration methods of Hibernate Configuation

  1. Mapping files

  2. http.conf

  3. XML Configuration hibernate.cfg.xml

  4. web.config


Correct Option: A,C

AI Explanation

To answer this question, you need to understand the common configuration methods of Hibernate.

Option A) Mapping files - This option is correct because mapping files are one of the most common configuration methods in Hibernate. These files define the mapping between Java classes and database tables.

Option B) http.conf - This option is incorrect. The http.conf file is a configuration file used by the Apache HTTP Server, not Hibernate.

Option C) XML Configuration hibernate.cfg.xml - This option is correct because hibernate.cfg.xml is another common configuration method in Hibernate. This XML file contains the configuration settings for the Hibernate framework.

Option D) web.config - This option is incorrect. The web.config file is a configuration file used in ASP.NET applications, not Hibernate.

The correct answers are A) Mapping files and C) XML Configuration hibernate.cfg.xml. These options are correct because they are commonly used configuration methods in Hibernate.

Find more quizzes: