Java Reference
In-Depth Information
EclispeLink JPA Persistence unit
properties
EclipseLink JPA provides some persistence unit properties that may be specified in
persistence.xml to configure various aspects of database persistence such as the
target database, the JDBC connection URL, and the JDBC connection pooling provided
by the data source. We shall discuss some of the persistence unit properties in the
following table:
Property
Description
Default Value
eclipselink.exception-
handler
This specifies an EclipseLink
exception handler class.
-
eclipselink.jdbc.bind-
parameters
This specifies if Java persistence
queries use parameter binding.
Property applies in J2SE
environment.
true
eclipselink.jdbc.
native-sql
This specifies if generation of
database-platform-specific SQL
should be enabled. Property applies
in both Java SE environment and
Java EE environment.
false
eclipselink.jdbc.batch-
writing
This specifies the use of batch
writing to optimize transactions
with multiple writes. The following
values may be specified:
JDBC:Use JDBC batch writing.
Oracle-JDBC: Use JDBC batch
writing and Oracle native platform
batch writing.
Buffered: Do not use either JDBC
batch writing or native platform
batch writing.
None: Do not use batch writing.
None
eclipselink.jdbc.cache-
statements
This specifies if EclispeLink internal
statement caching is to be used.
Value may be true or false.
false
eclipselink.jdbc.cache-
statements.size
This specifies the size of the internal
statements cache.
50
eclipselink.jdbc.
exclusive-connection.
is-lazy
This specifies if a write connection is
acquired lazily. Value may be true
or false.
true
Search WWH ::




Custom Search