Java Reference
In-Depth Information
Property Name
Description
hibernate.cache.use_second_level_cache
Determines whether to use the Hibernate second-
level cache.
hibernate.cglib.use_reflection_optimizer
Instead of using slower standard Java reflection,
uses the CGLib code generation library to optimize
access to business object properties. The applica-
tion may be slower at startup if this is enabled, but
with faster runtime performance.
hibernate.connection.autocommit
Allows autocommit mode to be used for the JDBC
connection (not usually a good idea).
hibernate.connection.datasource
The DataSource name for a container-managed
data source.
hibernate.connection.driver_class
The JDBC driver class.
hibernate.connection.isolation
The transaction isolation level for the JDBC con-
nection.
hibernate.connection. <JDBCpropertyname>
Passes any JDBC property you like to the JDBC
connection—for instance,
hibernate.connection.debuglevel=info would
pass a JDBC property called debuglevel .
hibernate.connection.password
The database password.
hibernate.connection.pool_size
Limits the number of connections waiting in the
Hibernate database connection pool.
hibernate.connection.provider_class
The class that implements Hibernate's
ConnectionProvider interface.
hibernate.connection.url
The JDBC URL to the database instance.
hibernate.connection.username
The database username.
hibernate.default_catalog
The default database catalog name that Hibernate
uses to generate SQL for unqualified table names.
hibernate.default_schema
The default database owner name that Hibernate
uses to generate SQL for unqualified table names.
hibernate.dialect
The SQL dialect to use for Hibernate; varies by
database. See this chapter's “SQL Dialects” section.
hibernate.generate_statistics
Determines whether statistics are collected.
hibernate.hbm2ddl.auto
Automatically creates, updates, or drops the data-
base schema on startup and shut down. There are
three possible values: create , create-drop , and
update . Be careful with create-drop !
hibernate.jdbc.batch_size
The maximum batch size for updates.
hibernate.jdbc.batch_versioned_data
Determines whether Hibernate batches versioned
data, which depends on your JDBC driver properly
implementing row counts for batch updates.
Hibernate uses the row count to determine
whether the update is successful.
hibernate.jdbc.factory_class
The class name of a custom implementation of the
org.hibernate.jdbc.Batcher interface for con-
trolling JDBC prepared statements.
Continued
Search WWH ::




Custom Search