@(#)persistence_1_0.xsd 1.0 Feb 9 2006
This is the XML Schema for the persistence configuration file.
The file must be named "META-INF/persistence.xml" in the
persistence archive.
Persistence configuration files must indicate
the persistence schema by using the persistence namespace:
http://java.sun.com/xml/ns/persistence
and indicate the version of the schema by
using the version element as shown below:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
...
</persistence>
Configuration of a persistence unit.
Textual description of this persistence unit.
Provider class that supplies EntityManagers for this
persistence unit.
The container-specific name of the JTA datasource to use.
The container-specific name of a non-JTA datasource to use.
File containing mapping information. Loaded as a resource
by the persistence provider.
Jar file that should be scanned for entities.
Not applicable to Java SE persistence units.
Class to scan for annotations. It should be annotated
with either @Entity, @Embeddable or @MappedSuperclass.
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. Not applicable to
Java SE persistence units.
A list of vendor-specific properties.
A name-value pair.
Name used in code to reference this persistence unit.
Type of transactions used by EntityManagers from this
persistence unit.