Reputation: 4504
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
Reputation: 1196
<property name="configLocation" value="classpath:hibernate.cfg.xml" />
Upvotes: 5