Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SqlRepositoryBeanConfig: explicit bean dependencies as arguments
DataSourceFactory.createDataSource() is called directly for dsf bean, not later in sessionFactory(), otherwise it was possible to obtain DSF without initialized datasource, which is not helpful. This wasn't problem because ORM is initialized too, but if for whatever reason sessionFactory() is not called (e.g. in test), DSF fails to give us SQL connection.
- Loading branch information
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters