http://java.sun.com/xml/ns/persistence
element persistence-unit

Documentation

                Configuration of a persistence unit.

              
Properties
This component is not nillable.

Model
<persistence-unit
  name = xsd:string
  transaction-type = persistence:persistence-unit-transaction-type>
(description?, provider?, jta-data-source?, non-jta-data-source?, mapping-file*, jar-file*, class*, exclude-unlisted-classes?, properties )
</persistence-unit>


Nested Element Summary
xsd:stringclass
          Class to scan for annotations. 
xsd:stringdescription
           Textual description of this persistence unit.  
xsd:booleanexclude-unlisted-classes
          When 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:stringjar-file
          Jar file that should be scanned for entities. 
xsd:stringjta-data-source
           The container-specific name of the JTA datasource to use.  
xsd:stringmapping-file
          File containing mapping information. 
xsd:stringnon-jta-data-source
           The container-specific name of a non-JTA datasource to use.  
 properties
           A list of vendor-specific properties.  
xsd:stringprovider
           Provider class that supplies EntityManagers for this persistence unit.  

Attribute Summary
 xsd:stringname
           Name used in code to reference this persistence unit.  
 persistence:persistence-unit-transaction-typetransaction-type
           Type of transactions used by EntityManagers from this persistence unit.  

Attribute Detail

name

Name used in code to reference this persistence unit.

Type:
xsd:string
Use:
required
Form:
unqualified

transaction-type

Type of transactions used by EntityManagers from this persistence unit.

Type:
persistence:persistence-unit-transaction-type
Use:
optional
Form:
unqualified

Source
<xsd:element maxOccurs="unbounded" minOccurs="0" name="persistence-unit">
<xsd:complexType>
<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:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="property">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="value" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required">
</xsd:attribute>
<xsd:attribute name="transaction-type" type="persistence:persistence-unit-transaction-type">
</xsd:attribute>
</xsd:complexType>
</xsd:element>


Submit a bug or a feature.
Created by xsddoc, a sub project of xframe, hosted at http://xframe.sourceforge.net.