you mean inline configuration (2) in combination with the external descriptor (2) ?
<hibernate-configuration resource="hibernate.cfg.xml"> (1) [... inline here ...] (2) </hibnerate-configuration>
no need for those to be mutually exclusive.
this is e.g. how we can apply the centralized caching configuration, and offer a single place to configure the cache strategy.