🎴 Flashcard Mode

Unix/Linux Commands and Java Hibernate ORM

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Location to keep “hibernate.cfg.xml” so that it gets picked up during startup?

AnswerClick to flip back
A
Source Directory of the Hibernate Project.
💡 Explanation:

The hibernate.cfg.xml configuration file must be on the application classpath to be automatically detected by Hibernate at startup. Placing it in the source directory ensures it gets copied to the classpath root during compilation. Lib directories are for JAR dependencies, not configuration files.

Change Mode