| |||||||
| FRAMES | NO FRAMES | |||||||
Configuration of a persistence unit.
| Nested Element Summary | |
xsd:string | classClass to scan for annotations. |
xsd:string | descriptionTextual description of this persistence unit. |
xsd:boolean | exclude-unlisted-classesWhen set to true then only listed classes and jars will be scanned for persistent classes, otherwise the enclosing jar or directory will also be scanned. |
xsd:string | jar-fileJar file that should be scanned for entities. |
xsd:string | jta-data-sourceThe container-specific name of the JTA datasource to use. |
xsd:string | mapping-fileFile containing mapping information. |
xsd:string | non-jta-data-sourceThe container-specific name of a non-JTA datasource to use. |
| propertiesA list of vendor-specific properties. |
xsd:string | providerProvider class that supplies EntityManagers for this persistence unit. |
| Attribute Summary | |
xsd:string | nameName used in code to reference this persistence unit. |
persistence:persistence-unit-transaction-type | transaction-typeType of transactions used by EntityManagers from this persistence unit. |
| Attribute Detail |
xsd:stringrequiredunqualifiedpersistence:persistence-unit-transaction-typeoptionalunqualified<xsd:element maxOccurs="unbounded" minOccurs="0" name="persistence-unit"><xsd:complexType></xsd:element><xsd:sequence><xsd:element minOccurs="0" name="description" type="xsd:string">
</xsd:element><xsd:element minOccurs="0" name="provider" type="xsd:string">
</xsd:element><xsd:element minOccurs="0" name="jta-data-source" type="xsd:string">
</xsd:element><xsd:element minOccurs="0" name="non-jta-data-source" type="xsd:string">
</xsd:element><xsd:element maxOccurs="unbounded" minOccurs="0" name="mapping-file" type="xsd:string">
</xsd:element><xsd:element maxOccurs="unbounded" minOccurs="0" name="jar-file" type="xsd:string">
</xsd:element><xsd:element maxOccurs="unbounded" minOccurs="0" name="class" type="xsd:string">
</xsd:element><xsd:element default="false" minOccurs="0" name="exclude-unlisted-classes" type="xsd:boolean">
</xsd:element><xsd:element minOccurs="0" name="properties"></xsd:sequence><xsd:complexType></xsd:element><xsd:sequence></xsd:complexType><xsd:element maxOccurs="unbounded" minOccurs="0" name="property"></xsd:sequence><xsd:complexType></xsd:element><xsd:attribute name="name" type="xsd:string" use="required"/><xsd:attribute name="value" type="xsd:string" use="required"/></xsd:complexType><xsd:attribute name="name" type="xsd:string" use="required">
</xsd:attribute><xsd:attribute name="transaction-type" type="persistence:persistence-unit-transaction-type"></xsd:complexType>
</xsd:attribute>
| |||||||
| FRAMES | NO FRAMES | |||||||