开发者

hibernate.properties vs hibernate.cfg.xml

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜