mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
[DS-3434] Make some documentation more visible.
This commit is contained in:
@@ -1381,6 +1381,7 @@ public class DatabaseUtils
|
|||||||
/**
|
/**
|
||||||
* Get a reference to the configured DataSource (which can be used to
|
* Get a reference to the configured DataSource (which can be used to
|
||||||
* initialize the database using Flyway).
|
* initialize the database using Flyway).
|
||||||
|
* The DataSource is configured via our ServiceManager (i.e. via Spring).
|
||||||
* <P>
|
* <P>
|
||||||
* This is NOT public, as we discourage direct connections to the database
|
* This is NOT public, as we discourage direct connections to the database
|
||||||
* which bypass Hibernate. Only Flyway should be allowed a direct connection.
|
* which bypass Hibernate. Only Flyway should be allowed a direct connection.
|
||||||
@@ -1388,7 +1389,6 @@ public class DatabaseUtils
|
|||||||
*/
|
*/
|
||||||
protected static DataSource getDataSource()
|
protected static DataSource getDataSource()
|
||||||
{
|
{
|
||||||
// DataSource is configured via our ServiceManager (i.e. via Spring).
|
|
||||||
Object dataSource = DSpaceServicesFactory.getInstance()
|
Object dataSource = DSpaceServicesFactory.getInstance()
|
||||||
.getServiceManager()
|
.getServiceManager()
|
||||||
.getServiceByName("dataSource", Object.class);
|
.getServiceByName("dataSource", Object.class);
|
||||||
|
Reference in New Issue
Block a user