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.
精彩评论