开发者

hibernate.properties vs hibernate.cfg.xml

开发者 https://www.devze.com 2023-03-15 06:41 出处:网络
What is the order of precedence between hibernate.properties and hibernate.cfg.xml ? For what I know hibernate.cfg.xml (if exists in the app\'s classpath) overrides hibernate.properties. Is my assump

What is the order of precedence between hibernate.properties and hibernate.cfg.xml ?

For what I know hibernate.cfg.xml (if exists in the app's classpath) overrides hibernate.properties. Is my assumption co开发者_StackOverflow中文版rrect ?

Thank you


From the documentation:

An alternative approach to configuration is to specify a full configuration in a file named hibernate.cfg.xml. This file can be used as a replacement for the hibernate.properties file or, if both are present, to override properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消