Persistence#createEntityManagerFactory(String, Map) which override
the values specified in the persistence.xml file.
Usage Example:
Map<String, Object> props = new HashMap<String, Object>();
props.put(PersistenceUnitProperties.JDBC_USER, "user-name");
props.put(PersistenceUnitProperties.JDBC_PASSWORD, "password");
EntityManagerFactory emf = Persistence.createEntityManagerFactory("pu-name", props);
Property values are usually case-insensitive with some common sense exceptions, for instance class names.
Persistence#createEntityManagerFactory(String, Map)
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ALLOW_NATIVE_SQL_QUERIES
The " |
| public static final String | ALLOW_ZERO_ID
The " |
| public static final String | APP_LOCATION
The property " |
| public static final String | BATCH_WRITING
The " |
| public static final String | BATCH_WRITING_SIZE
The " |
| public static final String | BEAN_VALIDATION_NO_OPTIMISATION
Property for disabling Bean Validation optimisations. |
| public static final String | CACHE_EXTENDED_LOGGING
The " |
| public static final String | CACHE_QUERY_FORCE_DEFERRED_LOCKS
The " |
| public static final String | CACHE_SHARED_
Property prefix " |
| public static final String | CACHE_SHARED_DEFAULT
Default caching properties - apply to all entities. |
| public static final String | CACHE_SIZE_
Property prefix " |
| public static final String | CACHE_SIZE_DEFAULT
Default caching properties - apply to all entities. |
| public static final String | CACHE_STATEMENTS
The " |
| public static final String | CACHE_STATEMENTS_SIZE
The " |
| public static final String | CACHE_TYPE_
Property prefix " |
| public static final String | CACHE_TYPE_DEFAULT
Default caching properties - apply to all entities. |
| public static final String | CANONICAL_MODEL_GENERATE_COMMENTS
The " |
| public static final String | CANONICAL_MODEL_GENERATE_COMMENTS_DEFAULT
Default value for the " |
| public static final String | CANONICAL_MODEL_GENERATE_GENERATED
The " |
| public static final String | CANONICAL_MODEL_GENERATE_GENERATED_DEFAULT
Default value for the " |
| public static final String | CANONICAL_MODEL_GENERATE_TIMESTAMP
The " |
| public static final String | CANONICAL_MODEL_GENERATE_TIMESTAMP_DEFAULT
Default value for the " |
| public static final String | CANONICAL_MODEL_LOAD_XML
The " |
| public static final String | CANONICAL_MODEL_LOAD_XML_DEFAULT
Default value for the " |
| public static final String | CANONICAL_MODEL_PREFIX
The " |
| public static String | CANONICAL_MODEL_PREFIX_DEFAULT
Default prefix that will be added to the start of the class name of any canonical model class generated. |
| public static final String | CANONICAL_MODEL_SUB_PACKAGE
The " |
| public static String | CANONICAL_MODEL_SUB_PACKAGE_DEFAULT
Default sub-package name that is used to have the canonical model generator generate its classes in a sub-package of the package where the corresponding entity class is located. |
| public static final String | CANONICAL_MODEL_SUFFIX
The " |
| public static String | CANONICAL_MODEL_SUFFIX_DEFAULT
Default suffix that will be added to the end of the class name of any canonical model class generated. |
| public static final String | CANONICAL_MODEL_USE_STATIC_FACTORY
The " |
| public static final String | CANONICAL_MODEL_USE_STATIC_FACTORY_DEFAULT
Default value for the " |
| public static final String | CATEGORY_LOGGING_LEVEL_
Property prefix " |
| public static final String | CDI_BEANMANAGER
The " |
| public static final String | CLASSLOADER
The " |
| public static final String | COMPOSITE_UNIT
The " |
| public static final String | COMPOSITE_UNIT_MEMBER
The " |
| public static final String | COMPOSITE_UNIT_PROPERTIES
The " |
| public static final String | CONCURRENCY_MANAGER_ACQUIRE_WAIT_TIME
This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager. |
| public static final String | CONCURRENCY_MANAGER_ALLOW_CONCURRENCY_EXCEPTION
This property control (enable/disable) if |
| public static final String | CONCURRENCY_MANAGER_ALLOW_INTERRUPTED_EXCEPTION
This property control (enable/disable) if |
| public static final String | CONCURRENCY_MANAGER_ALLOW_STACK_TRACE_READ_LOCK
This property control (enable/disable) collection debug/trace information during ReadLock acquisition, when dead-lock diagnostic is enabled. |
| public static final String | CONCURRENCY_MANAGER_BUILD_OBJECT_COMPLETE_WAIT_TIME
This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager. |
| public static final String | CONCURRENCY_MANAGER_MAX_FREQUENCY_DUMP_MASSIVE_MESSAGE
This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager and org.eclipse.persistence.internal.helper.ConcurrencyUtil. |
| public static final String | CONCURRENCY_MANAGER_MAX_FREQUENCY_DUMP_TINY_MESSAGE
This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager and org.eclipse.persistence.internal.helper.ConcurrencyUtil. |
| public static final String | CONCURRENCY_MANAGER_MAX_SLEEP_TIME
This system property in milliseconds can control thread management in org.eclipse.persistence.internal.helper.ConcurrencyManager. |
| public static final String | CONCURRENCY_MANAGER_OBJECT_BUILDING_NO_THREADS
This property control number of threads in semaphore in |
| public static final String | CONCURRENCY_MANAGER_USE_SEMAPHORE_TO_SLOW_DOWN_OBJECT_BUILDING
This property control (enable/disable) semaphore in |
| public static final String | CONCURRENCY_MANAGER_USE_SEMAPHORE_TO_SLOW_DOWN_WRITE_LOCK_MANAGER_ACQUIRE_REQUIRED_LOCKS
This property control (enable/disable) semaphore in |
| public static final String | CONCURRENCY_MANAGER_WRITE_LOCK_MANAGER_ACQUIRE_REQUIRED_LOCKS_NO_THREADS
This property control number of threads in semaphore in |
| public static final String | CONCURRENCY_SEMAPHORE_LOG_TIMEOUT
This property control timeout between log messages in |
| public static final String | CONCURRENCY_SEMAPHORE_MAX_TIME_PERMIT
This property control semaphore the maximum time to wait for a permit in |
| public static final String | CONNECTION_POOL
Allow configuring a " |
| public static final String | CONNECTION_POOL_FAILOVER
The " |
| public static final String | CONNECTION_POOL_INITIAL
The " |
| public static final String | CONNECTION_POOL_INTERNALLY_POOL_DATASOURCE
Tell EclipseLink to use it's internal connection pool to pool connections from a datasource. |
| public static final String | CONNECTION_POOL_JTA_DATA_SOURCE
The " |
| public static final String | CONNECTION_POOL_MAX
The " |
| public static final String | CONNECTION_POOL_MIN
The " |
| public static final String | CONNECTION_POOL_NON_JTA_DATA_SOURCE
The " |
| public static final String | CONNECTION_POOL_PASSWORD
The " |
| public static final String | CONNECTION_POOL_READ
Allow configuring the " |
| public static final String | CONNECTION_POOL_SEQUENCE
Allow configuring the " |
| public static final String | CONNECTION_POOL_SHARED
The " |
| public static final String | CONNECTION_POOL_URL
The " |
| public static final String | CONNECTION_POOL_USER
The " |
| public static final String | CONNECTION_POOL_WAIT
The " |
| public static final String | COORDINATION_ASYNCH
The " |
| public static final String | COORDINATION_CHANNEL
The " |
| public static final String | COORDINATION_JGROUPS_CONFIG
The " |
| public static final String | COORDINATION_JMS_FACTORY
The " |
| public static final String | COORDINATION_JMS_HOST
The " |
| public static final String | COORDINATION_JMS_REUSE_PUBLISHER
The " |
| public static final String | COORDINATION_JMS_TOPIC
The " |
| public static final String | COORDINATION_JNDI_CONTEXT
The " |
| public static final String | COORDINATION_JNDI_PASSWORD
The " |
| public static final String | COORDINATION_JNDI_USER
The " |
| public static final String | COORDINATION_NAMING_SERVICE
The " |
| public static final String | COORDINATION_PROTOCOL
The " |
| public static final String | COORDINATION_REMOVE_CONNECTION
The " |
| public static final String | COORDINATION_RMI_ANNOUNCEMENT_DELAY
The " |
| public static final String | COORDINATION_RMI_MULTICAST_GROUP
The " |
| public static final String | COORDINATION_RMI_MULTICAST_GROUP_PORT
The " |
| public static final String | COORDINATION_RMI_PACKET_TIME_TO_LIVE
The " |
| public static final String | COORDINATION_RMI_URL
The " |
| public static final String | COORDINATION_SERIALIZER
The " |
| public static final String | COORDINATION_THREAD_POOL_SIZE
The " |
| public static final String | CREATE_JDBC_DDL_FILE
The property " |
| public static final String | CREATE_ONLY
The parameter value " |
| public static final String | CREATE_OR_EXTEND
The parameter value " |
| public static final String | DATABASE_EVENT_LISTENER
The " |
| public static final String | DDL_BOTH_GENERATION
The parameter value " |
| public static final String | DDL_DATABASE_GENERATION
The parameter value " |
| public static final String | DDL_GENERATION
The " |
| public static final String | DDL_GENERATION_INDEX_FOREIGN_KEYS
The " |
| public static final String | DDL_GENERATION_MODE
The " |
| public static final String | DDL_SQL_SCRIPT_GENERATION
The parameter value " |
| public static final String | DEFAULT
Default Suffix could be appended to some prefixes to form a property name setting the default for the persistence unit. |
| public static final String | DEFAULT_APP_LOCATION
The default location in the file system to output DDL files. |
| public static final String | DEFAULT_CREATE_JDBC_FILE_NAME
The default name of the DDL file which is used to create database tables. |
| public static final String | DEFAULT_DDL_GENERATION_MODE
The |
| public static final String | DEFAULT_DROP_JDBC_FILE_NAME
The default name of the DDL file which is used to drop database tables. |
| public static final String | DEPLOY_ON_STARTUP
The " |
| public static final String | DESCRIPTOR_CUSTOMIZER_
The " |
| public static final String | DROP_AND_CREATE
The parameter value " |
| public static final String | DROP_JDBC_DDL_FILE
The property " |
| public static final String | DROP_ONLY
The parameter value " |
| public static final String | ECLIPSELINK_PERSISTENCE_UNITS
This " |
| public static final String | ECLIPSELINK_PERSISTENCE_XML
The " |
| public static final String | ECLIPSELINK_PERSISTENCE_XML_DEFAULT
The default resource location used to locate the persistence.xml configuration files. |
| public static final String | ECLIPSELINK_SE_PUINFO
The " |
| public static final String | EXCEPTION_HANDLER_CLASS
The " |
| public static final String | EXCLUDE_ECLIPSELINK_ORM_FILE
The " |
| public static final String | EXCLUSIVE_CONNECTION_IS_LAZY
The " |
| public static final String | EXCLUSIVE_CONNECTION_MODE
The " |
| public static final String | FLUSH_CLEAR_CACHE
The " |
| public static final String | FREE_METADATA
The " |
| public static final String | ID_VALIDATION
The " |
| public static final String | INCLUDE_DESCRIPTOR_QUERIES
The " |
| public static final String | JAVASE_DB_INTERACTION
The system property " |
| public static final String | JDBC_ALLOW_PARTIAL_PARAMETERS
Property " |
| public static final String | JDBC_BIND_PARAMETERS
Property " |
| public static final String | JDBC_CONNECTIONS_INITIAL
The " |
| public static final String | JDBC_CONNECTIONS_MAX
The " |
| public static final String | JDBC_CONNECTIONS_MIN
The " |
| public static final String | JDBC_CONNECTIONS_WAIT
The " |
| public static final String | JDBC_CONNECTOR
The " |
| public static final String | JDBC_DRIVER
The " |
| public static final String | JDBC_FORCE_BIND_PARAMETERS
Property " |
| public static final String | JDBC_PASSWORD
The " |
| public static final String | JDBC_PROPERTY
The " |
| public static final String | JDBC_READ_CONNECTIONS_INITIAL
The " |
| public static final String | JDBC_READ_CONNECTIONS_MAX
The " |
| public static final String | JDBC_READ_CONNECTIONS_MIN
The " |
| public static final String | JDBC_READ_CONNECTIONS_SHARED
The " |
| public static final String | JDBC_RESULT_SET_ACCESS_OPTIMIZATION
The " |
| public static final String | JDBC_SEQUENCE_CONNECTION_POOL
The " |
| public static final String | JDBC_SEQUENCE_CONNECTION_POOL_DATASOURCE
The " |
| public static final String | JDBC_SEQUENCE_CONNECTION_POOL_INITIAL
The " |
| public static final String | JDBC_SEQUENCE_CONNECTION_POOL_MAX
The " |
| public static final String | JDBC_SEQUENCE_CONNECTION_POOL_MIN
The " |
| public static final String | JDBC_URL
The " |
| public static final String | JDBC_USER
The " |
| public static final String | JDBC_WRITE_CONNECTIONS_INITIAL
The " |
| public static final String | JDBC_WRITE_CONNECTIONS_MAX
The " |
| public static final String | JDBC_WRITE_CONNECTIONS_MIN
The " |
| public static final String | JOIN_EXISTING_TRANSACTION
The " |
| public static final String | JPQL_PARSER
The " |
| public static final String | JPQL_TOLERATE
The " |
| public static final String | JPQL_VALIDATION
The " |
| public static final String | JTA_CONTROLLER
The " |
| public static final String | JTA_DATASOURCE
The " |
| public static final String | LOGGING_CONNECTION
Property " |
| public static final String | LOGGING_EXCEPTIONS
Property " |
| public static final String | LOGGING_FILE
The " |
| public static final String | LOGGING_LEVEL
The " |
| public static final String | LOGGING_LOGGER
The " |
| public static final String | LOGGING_PARAMETERS
By default sql bind parameters are displayed in exceptions and logs when the log level is FINE or greater. |
| public static final String | LOGGING_SESSION
Property " |
| public static final String | LOGGING_THREAD
Property " |
| public static final String | LOGGING_TIMESTAMP
The " |
| public static final String | METADATA_SOURCE
The " Allowed Values:
|
| public static final String | METADATA_SOURCE_PROPERTIES_FILE
The property " |
| public static final String | METADATA_SOURCE_RCM_COMMAND
The " |
| public static final String | METADATA_SOURCE_XML_FILE
The property " This property should be used in conjunction with the
" |
| public static final String | METADATA_SOURCE_XML_URL
The property " |
| public static final String | MULTITENANT_PROPERTY_DEFAULT
The " |
| public static final String | MULTITENANT_SCHEMA_PROPERTY_DEFAULT
The " |
| public static final String | MULTITENANT_SHARED_CACHE
Property " |
| public static final String | MULTITENANT_SHARED_EMF
Property " |
| public static final String | MULTITENANT_STRATEGY
The " |
| public static final String | NAMING_INTO_INDEXED
The " |
| public static final String | NATIVE_QUERY_UPPERCASE_COLUMNS
The " |
| public static final String | NATIVE_SQL
The " |
| public static final String | NON_JTA_DATASOURCE
The " |
| public static final String | NONE
The parameter value " |
| public static final String | NOSQL_CONNECTION_FACTORY
The " |
| public static final String | NOSQL_CONNECTION_SPEC
The " |
| public static final String | NOSQL_PASSWORD
The " |
| public static final String | NOSQL_PROPERTY
The " |
| public static final String | NOSQL_USER
The " |
| public static final String | ORACLE_PROXY_TYPE
The " |
| public static final String | ORDER_UPDATES
The " |
| public static final String | ORM_SCHEMA_VALIDATION
The " |
| public static final String | PARTITIONING
The " |
| public static final String | PARTITIONING_CALLBACK
The " |
| public static final String | PERSISTENCE_CONTEXT_CLOSE_ON_COMMIT
The " |
| public static final String | PERSISTENCE_CONTEXT_COMMIT_ORDER
The " |
| public static final String | PERSISTENCE_CONTEXT_COMMIT_WITHOUT_PERSIST_RULES
The " |
| public static final String | PERSISTENCE_CONTEXT_FLUSH_MODE
The " |
| public static final String | PERSISTENCE_CONTEXT_PERSIST_ON_COMMIT
The " |
| public static final String | PERSISTENCE_CONTEXT_REFERENCE_MODE
The " |
| public static final String | PESSIMISTIC_LOCK_TIMEOUT
The " |
| public static final String | PESSIMISTIC_LOCK_TIMEOUT_UNIT
The " |
| public static final String | PROFILER
The " |
| public static final String | PROJECT_CACHE
The " |
| public static final String | PROJECT_CACHE_FILE
The property " Specifies the name of the metadata repository xml file to read from using classloader to find the resource This property should be used in conjunction with
" |
| public static final Map | PROPERTY_LOG_OVERRIDES
INTERNAL: The following properties will not be displayed through logging but instead have an alternate value shown in the log. |
| public static final String | QUERY_CACHE
Property prefix " |
| public static final String | QUERY_RESULTS_CACHE_VALIDATION
This property control (enable/disable) query result cache validation in |
| public static final String | QUERY_TIMEOUT
The " |
| public static final String | QUERY_TIMEOUT_UNIT
The " |
| public static final String | REMOTE_PROTOCOL
The " |
| public static final String | REMOTE_SERVER_NAME
The " |
| public static final String | REMOTE_URL
The " |
| public static final String | SCHEMA_DATABASE_MAJOR_VERSION
If sufficient database version information is not included from the
JDBC DatabaseMetaData method getDatabaseProductName, the
" |
| public static final String | SCHEMA_DATABASE_MINOR_VERSION
If sufficient database version information is not included from the
JDBC DatabaseMetaData method getDatabaseProductName, the
" |
| public static final String | SCHEMA_DATABASE_PRODUCT_NAME
If scripts are to be generated by the persistence provider and a
connection to the target database is not supplied, the
" |
| public static final String | SCHEMA_GENERATION_CONNECTION
The " |
| public static final String | SCHEMA_GENERATION_CREATE_ACTION
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_CREATE_DATABASE_SCHEMAS
In Java EE environments, it is anticipated that the Java EE platform provider may wish to control the creation of database schemas rather than delegate this task to the persistence provider. |
| public static final String | SCHEMA_GENERATION_CREATE_SCRIPT_SOURCE
The " |
| public static final String | SCHEMA_GENERATION_CREATE_SOURCE
The " |
| public static final String | SCHEMA_GENERATION_DATABASE_ACTION
The " |
| public static final String | SCHEMA_GENERATION_DROP_ACTION
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_DROP_AND_CREATE_ACTION
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_DROP_SCRIPT_SOURCE
The " |
| public static final String | SCHEMA_GENERATION_DROP_SOURCE
The " |
| public static final String | SCHEMA_GENERATION_METADATA_SOURCE
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_METADATA_THEN_SCRIPT_SOURCE
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_NONE_ACTION
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_SCRIPT_SOURCE
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_SCRIPT_TERMINATE_STATEMENTS
When the " |
| public static final String | SCHEMA_GENERATION_SCRIPT_THEN_METADATA_SOURCE
The parameter value " For use with the " |
| public static final String | SCHEMA_GENERATION_SCRIPTS_ACTION
The " |
| public static final String | SCHEMA_GENERATION_SCRIPTS_CREATE_TARGET
If scripts are to be generated, the target locations for the writing of these scripts must be specified. |
| public static final String | SCHEMA_GENERATION_SCRIPTS_DROP_TARGET
If scripts are to be generated, the target locations for the writing of these scripts must be specified. |
| public static final String | SCHEMA_GENERATION_SQL_LOAD_SCRIPT_SOURCE
In Java EE container environments, it is generally expected that the container will be responsible for executing data load scripts, although the container is permitted to delegate this task to the persistence provider. |
| public static final String | SEQUENCING_SEQUENCE_DEFAULT
The " |
| public static final String | SEQUENCING_START_AT_NEXTVAL
By default, EclipseLink generates sequence values at (NEXTVAL - allocationSize). |
| public static final String | SERIALIZER
The "
Default value is " |
| public static final String | SESSION_CUSTOMIZER
The " |
| public static final String | SESSION_EVENT_LISTENER_CLASS
The " |
| public static final String | SESSION_NAME
The " |
| public static final String | SESSIONS_XML
The " |
| public static final String | SHARED_CACHE_MODE
The " |
| public static final String | SQL_CALL_DEFERRAL
The " |
| public static final String | SQL_CAST
The " |
| private static final Set | supportedNonServerSessionProperties
INTERNAL: The following properties passed to
|
| public static final String | TABLE_CREATION_SUFFIX
The " |
| public static final String | TARGET_DATABASE
The " |
| public static final String | TARGET_DATABASE_PROPERTIES
The " |
| public static final String | TARGET_SERVER
The " |
| public static final String | TEMPORAL_MUTABLE
The " |
| public static final String | THREAD_EXTENDED_LOGGING
The " |
| public static final String | THREAD_EXTENDED_LOGGING_THREADDUMP
The " |
| public static final String | THROW_EXCEPTIONS
The " |
| public static final String | TRANSACTION_TYPE
The " |
| public static final String | TUNING
The " |
| public static final String | UPPERCASE_COLUMN_NAMES
The " |
| public static final String | USE_LOCAL_TIMESTAMP
The " |
| public static final String | VALIDATE_EXISTENCE
The " |
| public static final String | VALIDATION_GROUP_PRE_PERSIST
The " |
| public static final String | VALIDATION_GROUP_PRE_REMOVE
The " |
| public static final String | VALIDATION_GROUP_PRE_UPDATE
The " |
| public static final String | VALIDATION_MODE
The " |
| public static final String | VALIDATION_ONLY_PROPERTY
The " |
| public static final String | VALIDATOR_FACTORY
The " |
| public static final String | WEAVING
The " |
| public static final String | WEAVING_CHANGE_TRACKING
The " |
| public static final String | WEAVING_EAGER
The " |
| public static final String | WEAVING_FETCHGROUPS
The " |
| public static final String | WEAVING_INTERNAL
The " |
| public static final String | WEAVING_LAZY
The " |
| public static final String | WEAVING_MAPPEDSUPERCLASS
The " |
| public static final String | WEAVING_REST
The " This property will only be considered if weaving is enabled. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the overridden log stringproperty which value should be overriden in the log propertyName)INTERNAL: Return the overridden log string. |
| public static Set |