About XML

91-100 of 200Refresh
JPA Doc
3

getPersistenceProviderClassName()

Method javax.persistence.spi.PersistenceUnitInfo String getPersistenceProviderClassName() Returns the fully qualified name of the persistence provider implementation class. Corresponds to the provider element in the persistence.xml file. Returns: the fully qualified name of the persistence provider implementation class Since: JPA 1.0
JPA Doc
3

getPersistenceUnitName()

Method javax.persistence.spi.PersistenceUnitInfo String getPersistenceUnitName() Returns the name of the persistence unit. Corresponds to the name attribute in the persistence.xml file. Returns: the name of the persistence unit Since: JPA 1.0
JPA Doc
3

getProperties()

Method javax.persistence.spi.PersistenceUnitInfo Properties getProperties() Returns a properties object. Each property corresponds to a property element in the persistence.xml file. Returns: Properties object Since: JPA 1.0
JPA Doc
3

getSharedCacheMode()

Method javax.persistence.spi.PersistenceUnitInfo SharedCacheMode getSharedCacheMode() Returns the specification of how the provider must use a second-level cache for the persistence unit. The result of this method corresponds to the shared-cache-mode element in the persistence.xml file. Returns
JPA Doc
3

getTransactionType()

Method javax.persistence.spi.PersistenceUnitInfo PersistenceUnitTransactionType getTransactionType() Returns the transaction type of the entity managers created by the EntityManagerFactory. The transaction type corresponds to the transaction-type attribute in the persistence.xml file. Returns
JPA Doc
3

getValidationMode()

Method javax.persistence.spi.PersistenceUnitInfo ValidationMode getValidationMode() Returns the validation mode to be used by the persistence provider for the persistence unit. The validation mode corresponds to the validation-mode element in the persistence.xml file. Returns: the validation mode
JPA Doc
3

javax.persistence.Cacheable

javax.persistence Annotation Cacheable Target: Classes Specifies whether an entity should be cached if caching is enabled when the value of the persistence.xml caching element is ENABLE_SELECTIVE or DISABLE_SELECTIVE. The value of the Cacheable annotation is inherited by subclasses
Forum
3

mapping file is not being loaded

.   here is my persistence.xml xml version="1.0" encoding="UTF-8"?>
JPA Doc
3

PersistenceContext.unitName

Annotation Element javax.persistence.PersistenceContext String unitName (Optional) The name of the persistence unit as defined in the persistence.xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI must have the same name. Default value: "" Since: JPA 1.0
JPA Doc
3

PersistenceUnit.unitName

Annotation Element javax.persistence.PersistenceUnit String unitName (Optional) The name of the persistence unit as defined in the persistence.xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI must have the same name. Default value: "" Since: JPA 1.0