public class PersistenceConfigurationProvider extends Object implements org.opensingular.lib.commons.util.Loggable
| Modifier and Type | Field and Description |
|---|---|
protected SingularPersistenceConfiguration |
persistenceConfiguration |
| Constructor and Description |
|---|
PersistenceConfigurationProvider()
This method will create the SingularPersistenceConfiguration using the implementation of the project.
|
PersistenceConfigurationProvider(SingularPersistenceConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource() |
Class<? extends org.hibernate.dialect.Dialect> |
getDialect() |
Properties |
getHibernateProperties() |
String[] |
getPackagesToScan(boolean retrieveAll)
This method will return the packages to Scan witch is implements SingularPersistenceConfiguration.
|
List<org.opensingular.lib.support.persistence.DatabaseObjectNameReplacement> |
getSchemaReplacements() |
List<String> |
getSQLScritps() |
boolean |
isCreateDrop() |
boolean |
isDropAllH2() |
protected SingularPersistenceConfiguration persistenceConfiguration
public PersistenceConfigurationProvider(SingularPersistenceConfiguration configuration)
public PersistenceConfigurationProvider()
public String[] getPackagesToScan(boolean retrieveAll)
retrieveAll - True for retrieveAll packages that will be used in HQL querys;
False for just the packages that have to create the tables.public Properties getHibernateProperties()
public List<org.opensingular.lib.support.persistence.DatabaseObjectNameReplacement> getSchemaReplacements()
public DataSource getDataSource()
public Class<? extends org.hibernate.dialect.Dialect> getDialect()
public boolean isDropAllH2()
public boolean isCreateDrop()
Copyright © 2019. All rights reserved.