Rejeev Divakaran
Rejeev Divakaran

Reputation: 4504

Configuration of Hibernate sessionFactory in Spring

How can I configure hibernate sessionFactory in Spring such that it uses the hibernate.cfg.xml for configurations (instead of configurations settings in applicationContext.xml)?

Upvotes: 0

Views: 864

Answers (1)

AlexZam
AlexZam

Reputation: 1196

<property name="configLocation" value="classpath:hibernate.cfg.xml" />

Upvotes: 5

Related Questions