@groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.AutoClone class DataSourceSettings extends ConnectionSourceSettings
DataSource settings
Type | Name and description |
---|---|
java.lang.String |
dbCreate The default value for `hibernate.hbm2ddl.auto` |
java.lang.Class |
dialect The dialect to use |
java.lang.String |
driverClassName The driver class name |
boolean |
formatSql Whether to format the SQL |
java.lang.String |
jndiName The JNDI name |
boolean |
lazy Whether the data source is lazy |
boolean |
logSql Whether to log SQL |
java.lang.String |
password The password |
boolean |
pooled Whether the data source is pooled |
java.util.Map |
properties The data source properties |
boolean |
readOnly Whether the connection is readonly |
java.lang.Class<? extends SchemaHandler> |
schemaHandler The schema handler to use |
boolean |
transactionAware Whether the data source is aware of an ongoing Spring transaction |
java.lang.Class<? extends javax.sql.DataSource> |
type The connection pool to use |
java.lang.String |
url The data source URL, defaults to an H2 in-memory database |
java.lang.String |
username The 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