You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ Should generally only configure this or `hibernate.connection.acquisition_mode`,
109
109
|`hibernate.c3p0.max_statements` | 5 | Maximum size of C3P0 statement cache. Refers to http://www.mchange.com/projects/c3p0/#maxStatements[c3p0 `maxStatements` setting].
110
110
|`hibernate.c3p0.acquire_increment` | 2 | Number of connections acquired at a time when there's no connection available in the pool. Refers to http://www.mchange.com/projects/c3p0/#acquireIncrement[c3p0 `acquireIncrement` setting].
111
111
|`hibernate.c3p0.idle_test_period` | 5 | Idle time before a C3P0 pooled connection is validated. Refers to http://www.mchange.com/projects/c3p0/#idleConnectionTestPeriod[c3p0 `idleConnectionTestPeriod` setting].
112
-
|`hibernate.c3p0` | | A setting prefix used to indicate additional c3p0 properties that need to be passed ot the underlying c3p0 connection pool.
112
+
|`hibernate.c3p0` | | A setting prefix used to indicate additional c3p0 properties that need to be passed to the underlying c3p0 connection pool.
@@ -155,7 +155,7 @@ However, some JPA providers do need the discriminator for handling joined inheri
155
155
However, we want to make sure that legacy applications continue to work as well, which puts us in a bind in terms of how to handle _implicit_ discriminator mappings.
156
156
The solution is to assume that the absence of discriminator metadata means to follow the legacy behavior _unless_ this setting is enabled.
157
157
158
-
With this setting enabled, Hibernate will interpret the absence of discriminator metadata as an indication to use the JPAdefined defaults for these absent annotations.
158
+
With this setting enabled, Hibernate will interpret the absence of discriminator metadata as an indication to use the JPA-defined defaults for these absent annotations.
159
159
160
160
See Hibernate Jira issue https://hibernate.atlassian.net/browse/HHH-6911[HHH-6911] for additional background info.
161
161
@@ -173,7 +173,7 @@ See Hibernate Jira issue https://hibernate.atlassian.net/browse/HHH-6911[HHH-691
Used to specify the `org.hibernate.boot.model.naming.ImplicitNamingStrategy` class to use.
176
-
The following short-names are defined for this setting:
176
+
The following shortnames are defined for this setting:
177
177
178
178
`default`:: Uses the `org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl`
179
179
`jpa`:: Uses the `org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl`
@@ -272,7 +272,7 @@ The maximum number of entries including:
272
272
273
273
maintained by `org.hibernate.engine.query.spi.QueryPlanCache`.
274
274
275
-
|`hibernate.query.plan_parameter_metadata_max_size` | `128` (default value) | The maximum number of strong references associated to `ParameterMetadata` maintained by `org.hibernate.engine.query.spi.QueryPlanCache`.
275
+
|`hibernate.query.plan_parameter_metadata_max_size` | `128` (default value) | The maximum number of strong references associated with `ParameterMetadata` maintained by `org.hibernate.engine.query.spi.QueryPlanCache`.
276
276
|`hibernate.order_by.default_null_ordering` |`none`, `first` or `last` |Defines precedence of null values in `ORDER BY` clause. Defaults to `none` which varies between RDBMS implementation.
277
277
|`hibernate.discriminator.force_in_select` |`true` or `false` (default value) | For entities which do not explicitly say, should we force discriminators into SQL selects?
278
278
|`hibernate.query.substitutions` | `true=1,false=0` |A comma-separated list of token substitutions to use when translating a Hibernate query to SQL.
@@ -371,7 +371,7 @@ In reality, you shouldn't probably enable this setting anyway.
371
371
372
372
A setting to control whether to `org.hibernate.engine.internal
373
373
.StatisticalLoggingSessionEventListener` is enabled on all `Sessions` (unless explicitly disabled for a given `Session`).
374
-
The default value of this setting is determined by the value for `hibernate.generate_statistics`, meaning that if collection of statistics is enabled logging of Session metrics is enabled by default too.
374
+
The default value of this setting is determined by the value for `hibernate.generate_statistics`, meaning that if statistics are enabled, then logging of Session metrics is enabled by default too.
@@ -507,7 +507,7 @@ In such cases, a value for this setting _must_ be specified.
507
507
508
508
The value of this setting is expected to match the value returned by `java.sql.DatabaseMetaData#getDatabaseProductName()` for the target database.
509
509
510
-
Additionally specifying `javax.persistence.database-major-version` and/or `javax.persistence.database-minor-version` may be required to understand exactly how to generate the required schema commands.
510
+
Additionally, specifying `javax.persistence.database-major-version` and/or `javax.persistence.database-minor-version` may be required to understand exactly how to generate the required schema commands.
In JPA nomenclature, the `Session` is represented by an `EntityManager`.
26
26
+
27
27
Behind the scenes, the Hibernate `Session` wraps a JDBC `java.sql.Connection` and acts as a factory for `org.hibernate.Transaction` instances.
28
-
It maintains a generally "repeatable read" persistence context (first level cache) of the application's domain model.
28
+
It maintains a generally "repeatable read" persistence context (first level cache) of the application domain model.
29
29
30
30
Transaction (`org.hibernate.Transaction`):: A single-threaded, short-lived object used by the application to demarcate individual physical transaction boundaries.
31
-
`EntityTransaction` is the JPA equivalent and both act as an abstraction API to isolate the application from the underling transaction system in use (JDBC or JTA).
31
+
`EntityTransaction` is the JPA equivalent and both act as an abstraction API to isolate the application from the underlying transaction system in use (JDBC or JTA).
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/userguide/chapters/batch/Batching.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The following settings control this behavior.
17
17
`hibernate.jdbc.batch_versioned_data`::
18
18
Some JDBC drivers return incorrect row counts when a batch is executed.
19
19
If your JDBC driver falls into this category this setting should be set to `false`.
20
-
Otherwise it is safe to enable this which will allow Hibernate to still batch the DML for versioned entities and still use the returned row counts for optimistic lock checks.
20
+
Otherwise, it is safe to enable this which will allow Hibernate to still batch the DML for versioned entities and still use the returned row counts for optimistic lock checks.
21
21
Since 5.0, it defaults to true. Previously (versions 3.x and 4.x), it used to be false.
There are several problems associated to this example:
51
+
There are several problems associated with this example:
52
52
53
53
. Hibernate caches all the newly inserted `Customer` instances in the session-level c1ache, so, when the transaction ends, 100 000 entities are managed by the persistence context.
54
54
If the maximum memory allocated to the JVM is rather low, this example could fails with an `OutOfMemoryException`.
55
55
The Java 1.8 JVM allocated either 1/4 of available RAM or 1Gb, which can easily accommodate 100 000 objects on the heap.
56
56
. long-running transactions can deplete a connection pool so other transactions don't get a chance to proceed.
57
57
. JDBC batching is not enabled by default, so every insert statement requires a database roundtrip.
58
-
To enable JDBC batching, set the property `hibernate.jdbc.batch_size` to an integer between 10 and 50.
58
+
To enable JDBC batching, set the `hibernate.jdbc.batch_size` property to an integer between 10 and 50.
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/userguide/chapters/bootstrap/Bootstrap.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The process is very different for each.
10
10
====
11
11
This chapter will not focus on all the possibilities of bootstrapping.
12
12
Those will be covered in each specific more-relevant chapters later on.
13
-
Instead we focus here on the API calls needed to perform the bootstrapping.
13
+
Instead, we focus here on the API calls needed to perform the bootstrapping.
14
14
====
15
15
16
16
[TIP]
@@ -30,13 +30,13 @@ For a discussion of the legacy bootstrapping API, see <<appendices/Legacy_Bootst
30
30
31
31
The first step in native bootstrapping is the building of a `ServiceRegistry` holding the services Hibernate will need during bootstrapping and at run time.
32
32
33
-
Actually we are concerned with building 2 different ServiceRegistries.
33
+
Actually, we are concerned with building 2 different ServiceRegistries.
34
34
First is the `org.hibernate.boot.registry.BootstrapServiceRegistry`.
35
35
The `BootstrapServiceRegistry` is intended to hold services that Hibernate needs at both bootstrap and run time.
36
36
This boils down to 3 services:
37
37
38
38
`org.hibernate.boot.registry.classloading.spi.ClassLoaderService`:: which controls how Hibernate interacts with `ClassLoader`s
39
-
`org.hibernate.integrator.spi.IntegratorService`:: which controls the management ands discovery of `org.hibernate.integrator.spi.Integrator` instances.
39
+
`org.hibernate.integrator.spi.IntegratorService`:: which controls the management and discovery of `org.hibernate.integrator.spi.Integrator` instances.
40
40
`org.hibernate.boot.registry.selector.spi.StrategySelector`:: which control how Hibernate resolves implementations of various strategy contracts.
41
41
This is a very powerful service, but a full discussion of it is beyond the scope of this guide.
The second step in native bootstrapping is the building of a `org.hibernate.boot.Metadata` object containing the parsed representations of an application's domain model and its mapping to a database.
109
+
The second step in native bootstrapping is the building of a `org.hibernate.boot.Metadata` object containing the parsed representations of an application domain model and its mapping to a database.
110
110
The first thing we obviously need to build a parsed representation is the source information to be parsed (annotated classes, `hbm.xml` files, `orm.xml` files).
111
111
This is the purpose of `org.hibernate.boot.MetadataSources`:
The `integrationSettings` allows the application develoepr to customize the bootstrapping process by specifying different `hibernate.integrator_provider` or `hibernate.strategy_registration_provider` integration providers.
243
+
The `integrationSettings` allows the application developer to customize the bootstrapping process by specifying different `hibernate.integrator_provider` or `hibernate.strategy_registration_provider` integration providers.
0 commit comments