Modifier and Type | Method and Description |
---|---|
PersistenceUnitConfig |
PersistenceUnitConfig.addJarFileUrls(URL url,
URL... urls)
Specifies URLs for any jar files or exploded jar file directories that the persistence provider must
examine for managed classes of the persistence unit.
|
PersistenceUnitConfig |
PersistenceUnitConfig.addMappingFileNames(String fileName,
String... fileNames)
Specifies any mapping files that must be loaded to determine the mappings
for the entity classes.
|
PersistenceUnitConfig |
PersistenceUnitConfig.setExcludeUnlistedClasses(boolean excludeUnlistedClasses)
Specifies whether classes in the root of the persistence unit that have not been explicitly listed are to
be included in the set of managed classes.
|
PersistenceUnitConfig |
PersistenceUnitConfig.setProperty(String property,
String value)
Specifies a property value to be used by the persistence provider for the persistence unit.
|
PersistenceUnitConfig |
PersistenceUnitConfig.setSharedCacheMode(javax.persistence.SharedCacheMode sharedCacheMode)
Specifies how the provider must use a second-level cache for the persistence unit.
|
PersistenceUnitConfig |
PersistenceUnitConfig.setValidationMode(javax.persistence.ValidationMode validationMode)
Specifies the validation mode to be used by the persistence provider for the persistence unit.
|
Modifier and Type | Method and Description |
---|---|
protected void |
EntityManagerBundle.configure(PersistenceUnitConfig configuration)
Override to configure the JPA persistence unit.
|
Copyright © 2016. All rights reserved.