diff --git a/tooling/metamodel-generator/.gitignore b/tooling/metamodel-generator/.gitignore new file mode 100644 index 0000000000..946ee1f24e --- /dev/null +++ b/tooling/metamodel-generator/.gitignore @@ -0,0 +1,32 @@ +# Typically *NIX text editors, by default, append '~' to files on saving to make backups +*~ + +# Gradle work directory +.gradle +buildSrc/.gradle + +# Build output directies +/target +*/target +/build +*/build + +# IntelliJ specific files/directories +/out +.idea +*.ipr +*.iws +*.iml +atlassian-ide-plugin.xml + +# Eclipse specific files/directories +.classpath +.project +.settings + +# NetBeans specific files/directories +.nbattrs + +# Miscellaneous +*.log +.clover diff --git a/tooling/metamodel-generator/src/main/xsd/persistence_2_0.xsd b/tooling/metamodel-generator/src/main/xsd/persistence_2_0.xsd index c593a9820d..a33a356774 100644 --- a/tooling/metamodel-generator/src/main/xsd/persistence_2_0.xsd +++ b/tooling/metamodel-generator/src/main/xsd/persistence_2_0.xsd @@ -1,33 +1,24 @@ - - + + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:persistence="http://java.sun.com/xml/ns/persistence" + elementFormDefault="qualified" + attributeFormDefault="unqualified" + version="2.0"> - @(#)persistence_2_0.xsd 1.0 August 27 2008 + @(#)persistence_2_0.xsd 1.0 October 1 2009 -... - +and indicate the version of the schema by using the version element as shown below: + +... ]]> @@ -40,17 +31,16 @@ version="2.0"> - + - Configuration of a persistence unit. + + Configuration of a persistence unit. - + Description of this persistence unit. @@ -58,18 +48,15 @@ version="2.0"> - + - Provider class that supplies EntityManagers for this - persistence unit. + Provider class that supplies EntityManagers for this persistence unit. - + The container-specific name of the JTA datasource to use. @@ -77,8 +64,7 @@ version="2.0"> - + The container-specific name of a non-JTA datasource to use. @@ -86,71 +72,70 @@ version="2.0"> - + - File containing mapping information. Loaded as a resource - by the persistence provider. + + 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. + Jar file that is to be scanned for managed classes. - + - Class to scan for annotations. It should be annotated - with either @Entity, @Embeddable or @MappedSuperclass. + Managed class to be included in the persistence unit and 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. + 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. - + - Defines whether caching is enabled for the - persistence unit if caching is supported by the - persistence provider. When set to ALL, all entities - will be cached. When set to NONE, no entities will - be cached. When set to ENABLE_SELECTIVE, only entities - specified as cacheable will be cached. When set toDISABLE_SELECTIVE, entities specified as not cacheable - will not be cached. + Defines whether caching is enabled for the persistence unit if caching is + supported by the persistence provider. When set to ALL, all entities will be + cached. When set to NONE, no entities will be cached. When set to + ENABLE_SELECTIVE, only entities specified as cacheable will be cached. When set + to + JSR-317 Final Release + 323 11/10/09 + Sun Microsystems, Inc. + Entity Packaging + Java Persistence 2.0, Final Release persistence.xml Schema + DISABLE_SELECTIVE, entities specified as not cacheable will not be cached. When + not specified or when set to UNSPECIFIED, provider defaults may apply. - + - - Specifies the validation mode to be used for the - persistence unit. + The validation mode to be used for the persistence unit. @@ -158,23 +143,19 @@ version="2.0"> - A list of vendor-specific properties. + A list of standard and vendor-specific properties and hints. + minOccurs="0" maxOccurs="unbounded"> - - A name-value pair. - + A name-value pair. - - + + @@ -184,17 +165,16 @@ version="2.0"> - - Name used in code to reference this persistence unit. + Name used in code to reference this persistence unit. - + + + - + - Type of transactions used by EntityManagers from this - persistence unit. + Type of transactions used by EntityManagers from this persistence unit. @@ -202,14 +182,13 @@ version="2.0"> + fixed="2.0" use="required"/> - - public enum TransactionType { JTA, RESOURCE_LOCAL }; + public enum PersistenceUnitTransactionType {JTA, RESOURCE_LOCAL}; @@ -221,8 +200,7 @@ version="2.0"> - public enum CachingType { ALL, NONE, ENABLE_SELECTIVE, - DISABLE_SELECTIVE}; + public enum SharedCacheMode { ALL, NONE, ENABLE_SELECTIVE, DISABLE_SELECTIVE, UNSPECIFIED}; @@ -230,8 +208,10 @@ version="2.0"> + +