@groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.AutoClone class DataSourceSettings extends ConnectionSourceSettings
DataSource settings
| Type | Name and description |
|---|---|
java.lang.String |
dbCreateThe default value for `hibernate.hbm2ddl.auto` |
java.lang.Class |
dialectThe dialect to use |
java.lang.String |
driverClassNameThe driver class name |
boolean |
formatSqlWhether to format the SQL |
java.lang.String |
jndiNameThe JNDI name |
boolean |
lazyWhether the data source is lazy |
boolean |
logSqlWhether to log SQL |
java.lang.String |
passwordThe password |
boolean |
pooledWhether the data source is pooled |
java.util.Map |
propertiesThe data source properties |
boolean |
readOnlyWhether the connection is readonly |
java.lang.Class<? extends SchemaHandler> |
schemaHandlerThe schema handler to use |
boolean |
transactionAwareWhether the data source is aware of an ongoing Spring transaction |
java.lang.Class<? extends javax.sql.DataSource> |
typeThe connection pool to use |
java.lang.String |
urlThe data source URL, defaults to an H2 in-memory database |
java.lang.String |
usernameThe username |
| Properties inherited from class | Properties |
|---|---|
class ConnectionSourceSettings |
autoFlush, autowire, connectionSourcesClass, custom, default, defaults, failOnError, failOnErrorPackages, flushMode, markDirty, multiTenancy |
| Constructor and description |
|---|
DataSourceSettings() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Properties |
toHibernateProperties()Convert to Hibernate properties |
|
java.util.Map<java.lang.String, java.lang.String> |
toProperties()
|
| Methods inherited from class | Name |
|---|---|
class ConnectionSourceSettings |
getDefault, setDefault |
The default value for `hibernate.hbm2ddl.auto`
The dialect to use
The driver class name
Whether to format the SQL
The JNDI name
Whether the data source is lazy
Whether to log SQL
The password
Whether the data source is pooled
The data source properties
Whether the connection is readonly
The schema handler to use
Whether the data source is aware of an ongoing Spring transaction
The connection pool to use
The data source URL, defaults to an H2 in-memory database
The username
Groovy Documentation