You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mi...@apache.org on 2009/03/23 13:42:46 UTC
svn commit: r757388 [1/7] - in /openjpa/trunk:
openjpa-examples/src/main/java/ openjpa-examples/src/main/java/META-INF/
openjpa-examples/src/main/java/hellojpa/
openjpa-examples/src/main/java/relations/
openjpa-jdbc/src/main/resources/org/apache/openjp...
Author: mikedd
Date: Mon Mar 23 12:42:41 2009
New Revision: 757388
URL: http://svn.apache.org/viewvc?rev=757388&view=rev
Log:
OPENJPA-896. Setting eol-style:native and removing windows eol characters from XML files.
Modified:
openjpa/trunk/openjpa-examples/src/main/java/META-INF/persistence.xml (props changed)
openjpa/trunk/openjpa-examples/src/main/java/build.xml (props changed)
openjpa/trunk/openjpa-examples/src/main/java/hellojpa/build.xml (props changed)
openjpa/trunk/openjpa-examples/src/main/java/relations/build.xml (props changed)
openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml (props changed)
openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml (contents, props changed)
openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml (props changed)
openjpa/trunk/openjpa-lib/src/test/resources/org/apache/openjpa/lib/xml/formatted-result.xml (props changed)
openjpa/trunk/openjpa-lib/src/test/resources/org/apache/openjpa/lib/xml/raw-source.xml (props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/listener-orm.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/META-INF/persistence-config.xml
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/product-derivations-load.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/orm.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/orm.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/xml/orm.xml
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/cache/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/conf/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/datacache/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/embed/embed-orm.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/enhance/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/entityoperation/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/event/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jdbc/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jdbc/common/apps/mappingApp/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/jdbc/unique/orm.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/kernel/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/meta/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/query/common/apps/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/xml/persistence-without-xsd.xml (contents, props changed)
openjpa/trunk/openjpa-project/assembly.xml (contents, props changed)
openjpa/trunk/openjpa-project/source-assembly.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_arch.xml
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_conclusion.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_em.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_emfactory.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_intro.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_mapping.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_meta.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_pc.xml
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_persistence.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_sqlquery.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_trans.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_why.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_resources.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/jpa_tutorials.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/manual.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/openjpa_intro.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_caching.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_deploy.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_integration.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_intro.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_logging.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_mapping.xml (contents, props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_meta.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_optimization.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_pc.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_remote.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_runtime.xml
openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_slice.xml (contents, props changed)
openjpa/trunk/openjpa-project/src/doc/manual/samples_guide.xml (props changed)
openjpa/trunk/openjpa-project/src/doc/manual/supported_databases.xml (props changed)
openjpa/trunk/openjpa-slice/src/main/ant/enhancer.xml (contents, props changed)
openjpa/trunk/openjpa-slice/src/test/resources/META-INF/persistence.xml (contents, props changed)
openjpa/trunk/src/site/site.xml (props changed)
Propchange: openjpa/trunk/openjpa-examples/src/main/java/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openjpa/trunk/openjpa-examples/src/main/java/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openjpa/trunk/openjpa-examples/src/main/java/hellojpa/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openjpa/trunk/openjpa-examples/src/main/java/relations/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/ant/antlib.xml
------------------------------------------------------------------------------
--- svn:eol-style (original)
+++ svn:eol-style Mon Mar 23 12:42:41 2009
@@ -1 +1 @@
-LF
+native
Modified: openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml (original)
+++ openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml Mon Mar 23 12:42:41 2009
@@ -1,193 +1,193 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<!-- ======================================================================= -->
-<!-- Lists SQL Error State codes for specific type of faults per database -->
-<!-- dictionary. -->
-<!-- SQL Exceptions raised by JDBC should carry standard error state code -->
-<!-- but they hardly do. Hence, the error state codes for specific type of -->
-<!-- database error can be listed here. These codes help to narrow down the -->
-<!-- cause of failure at JDBC layer and bubbles up as more intelligible -->
-<!-- exception to the application. -->
-<!-- ======================================================================= -->
-<sql-state-codes>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.DB2Dictionary">
- <lock>40001,57033</lock>
- <referential-integrity>23502,42912,23001,23504,23511,23512,23513,23515,23520</referential-integrity>
- <object-exists>23505</object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query>57014</query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.DerbyDictionary">
- <lock>40001,40XL1,40XL2</lock>
- <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
- <object-exists>23505</object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query>XCL52</query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.SQLServerDictionary">
- <lock>1205</lock>
- <referential-integrity>544,2601,2627,8114,8115</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic>1205</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.SybaseDictionary">
- <lock>1205</lock>
- <referential-integrity>423,511,515,530,547,2601,2615,2714</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic>1205</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.AccessDictionary">
- <lock>40001</lock>
- <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
- <object-exists>23505,456c</object-exists>
- <object-not-found></object-not-found>
- <optimistic>40XL1,40001</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.CacheDictionary">
- <lock>40001</lock>
- <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
- <object-exists>23505,456c</object-exists>
- <object-not-found></object-not-found>
- <optimistic>40XL1,40001</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.EmpressDictionary">
- <lock>40001</lock>
- <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
- <object-exists>23505,456c</object-exists>
- <object-not-found></object-not-found>
- <optimistic>40XL1,40001</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.FoxProDictionary">
- <lock>40001</lock>
- <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
- <object-exists>23505,456c</object-exists>
- <object-not-found></object-not-found>
- <optimistic>40XL1,40001</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.H2Dictionary">
- <lock></lock>
- <referential-integrity>22003,22012,22025,23000,23001</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.HSQLDictionary">
- <lock></lock>
- <referential-integrity>-9</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.InformixDictionary">
- <lock></lock>
- <referential-integrity>-239,-268,-692,-11030</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.InterbaseDictionary">
- <lock></lock>
- <referential-integrity></referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.FirebirdDictionary">
- <lock></lock>
- <referential-integrity></referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.JDataStoreDictionary">
- <lock></lock>
- <referential-integrity></referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.MySQLDictionary">
- <lock>1213</lock>
- <referential-integrity>630,839,840,893,1062,1169,1215,1216,1217,1451,1452,1557</referential-integrity>
- <object-exists>23000</object-exists>
- <object-not-found></object-not-found>
- <optimistic>41000,1205,1213</optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.OracleDictionary">
- <lock></lock>
- <referential-integrity>1,1400,1722,2291,2292</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.PointbaseDictionary">
- <lock></lock>
- <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic></optimistic>
- <query></query>
- </dictionary>
-
- <dictionary class="org.apache.openjpa.jdbc.sql.PostgresDictionary">
- <lock>55P03,40P01</lock>
- <referential-integrity>23000,23502,23503,23505,23514</referential-integrity>
- <object-exists></object-exists>
- <object-not-found></object-not-found>
- <optimistic>55P03</optimistic>
- <query></query>
- </dictionary>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<!-- ======================================================================= -->
+<!-- Lists SQL Error State codes for specific type of faults per database -->
+<!-- dictionary. -->
+<!-- SQL Exceptions raised by JDBC should carry standard error state code -->
+<!-- but they hardly do. Hence, the error state codes for specific type of -->
+<!-- database error can be listed here. These codes help to narrow down the -->
+<!-- cause of failure at JDBC layer and bubbles up as more intelligible -->
+<!-- exception to the application. -->
+<!-- ======================================================================= -->
+<sql-state-codes>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.DB2Dictionary">
+ <lock>40001,57033</lock>
+ <referential-integrity>23502,42912,23001,23504,23511,23512,23513,23515,23520</referential-integrity>
+ <object-exists>23505</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query>57014</query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.DerbyDictionary">
+ <lock>40001,40XL1,40XL2</lock>
+ <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
+ <object-exists>23505</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query>XCL52</query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.SQLServerDictionary">
+ <lock>1205</lock>
+ <referential-integrity>544,2601,2627,8114,8115</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>1205</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.SybaseDictionary">
+ <lock>1205</lock>
+ <referential-integrity>423,511,515,530,547,2601,2615,2714</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>1205</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.AccessDictionary">
+ <lock>40001</lock>
+ <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
+ <object-exists>23505,456c</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>40XL1,40001</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.CacheDictionary">
+ <lock>40001</lock>
+ <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
+ <object-exists>23505,456c</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>40XL1,40001</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.EmpressDictionary">
+ <lock>40001</lock>
+ <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
+ <object-exists>23505,456c</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>40XL1,40001</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.FoxProDictionary">
+ <lock>40001</lock>
+ <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
+ <object-exists>23505,456c</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>40XL1,40001</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.H2Dictionary">
+ <lock></lock>
+ <referential-integrity>22003,22012,22025,23000,23001</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.HSQLDictionary">
+ <lock></lock>
+ <referential-integrity>-9</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.InformixDictionary">
+ <lock></lock>
+ <referential-integrity>-239,-268,-692,-11030</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.InterbaseDictionary">
+ <lock></lock>
+ <referential-integrity></referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.FirebirdDictionary">
+ <lock></lock>
+ <referential-integrity></referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.JDataStoreDictionary">
+ <lock></lock>
+ <referential-integrity></referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.MySQLDictionary">
+ <lock>1213</lock>
+ <referential-integrity>630,839,840,893,1062,1169,1215,1216,1217,1451,1452,1557</referential-integrity>
+ <object-exists>23000</object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>41000,1205,1213</optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.OracleDictionary">
+ <lock></lock>
+ <referential-integrity>1,1400,1722,2291,2292</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.PointbaseDictionary">
+ <lock></lock>
+ <referential-integrity>22001,22005,23502,23503,23513,X0Y32</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic></optimistic>
+ <query></query>
+ </dictionary>
+
+ <dictionary class="org.apache.openjpa.jdbc.sql.PostgresDictionary">
+ <lock>55P03,40P01</lock>
+ <referential-integrity>23000,23502,23503,23505,23514</referential-integrity>
+ <object-exists></object-exists>
+ <object-not-found></object-not-found>
+ <optimistic>55P03</optimistic>
+ <query></query>
+ </dictionary>
+
</sql-state-codes>
\ No newline at end of file
Propchange: openjpa/trunk/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/sql/sql-error-state-codes.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/ant/antlib.xml
------------------------------------------------------------------------------
--- svn:eol-style (original)
+++ svn:eol-style Mon Mar 23 12:42:41 2009
@@ -1 +1 @@
-LF
+native
Propchange: openjpa/trunk/openjpa-lib/src/test/resources/org/apache/openjpa/lib/xml/formatted-result.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: openjpa/trunk/openjpa-lib/src/test/resources/org/apache/openjpa/lib/xml/raw-source.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/listener-orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/listener-orm.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/listener-orm.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/listener-orm.xml Mon Mar 23 12:42:41 2009
@@ -1,40 +1,40 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd"
- version="1.0">
- <persistence-unit-metadata>
- <persistence-unit-defaults>
- <entity-listeners>
- <entity-listener class=
- "org.apache.openjpa.persistence.callbacks.ListenerImpl">
- </entity-listener>
- </entity-listeners>
- </persistence-unit-defaults>
- </persistence-unit-metadata>
- <package>org.apache.openjpa.persistence.callbacks</package>
- <entity class="EntityListenerEntity">
- <exclude-default-listeners/>
- </entity>
- <entity class="Message">
- <exclude-default-listeners/>
- </entity>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd"
+ version="1.0">
+ <persistence-unit-metadata>
+ <persistence-unit-defaults>
+ <entity-listeners>
+ <entity-listener class=
+ "org.apache.openjpa.persistence.callbacks.ListenerImpl">
+ </entity-listener>
+ </entity-listeners>
+ </persistence-unit-defaults>
+ </persistence-unit-metadata>
+ <package>org.apache.openjpa.persistence.callbacks</package>
+ <entity class="EntityListenerEntity">
+ <exclude-default-listeners/>
+ </entity>
+ <entity class="Message">
+ <exclude-default-listeners/>
+ </entity>
</entity-mappings>
\ No newline at end of file
Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/listener-orm.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/META-INF/persistence.xml Mon Mar 23 12:42:41 2009
@@ -39,7 +39,7 @@
class.
</description>
<mapping-file>org/apache/openjpa/persistence/xml/orm.xml</mapping-file>
- <mapping-file>org/apache/openjpa/persistence/embed/embed-orm.xml</mapping-file>
+ <mapping-file>org/apache/openjpa/persistence/embed/embed-orm.xml</mapping-file>
<properties>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>
@@ -85,45 +85,45 @@
<mapping-file>META-INF/listener-orm.xml</mapping-file>
<class>org.apache.openjpa.persistence.callbacks.EntityListenerEntity</class>
<class>org.apache.openjpa.persistence.callbacks.GlobalListenerEntity</class>
- <class>org.apache.openjpa.persistence.callbacks.Message</class>
+ <class>org.apache.openjpa.persistence.callbacks.Message</class>
<properties>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>
</properties>
- </persistence-unit>
-
- <persistence-unit name="test-unique-constraint">
- <mapping-file>org/apache/openjpa/persistence/jdbc/unique/orm.xml</mapping-file>
- <class>org.apache.openjpa.persistence.jdbc.unique.UniqueA</class>
- <class>org.apache.openjpa.persistence.jdbc.unique.UniqueB</class>
- </persistence-unit>
-
- <persistence-unit name="test-metadata-complete">
- <mapping-file>org/apache/openjpa/persistence/annotations/xml/orm.xml</mapping-file>
- </persistence-unit>
+ </persistence-unit>
+
+ <persistence-unit name="test-unique-constraint">
+ <mapping-file>org/apache/openjpa/persistence/jdbc/unique/orm.xml</mapping-file>
+ <class>org.apache.openjpa.persistence.jdbc.unique.UniqueA</class>
+ <class>org.apache.openjpa.persistence.jdbc.unique.UniqueB</class>
+ </persistence-unit>
+
+ <persistence-unit name="test-metadata-complete">
+ <mapping-file>org/apache/openjpa/persistence/annotations/xml/orm.xml</mapping-file>
+ </persistence-unit>
- <persistence-unit name="embed-pu">
- <mapping-file>org/apache/openjpa/persistence/embed/embed-orm.xml</mapping-file>
- <class>org.apache.openjpa.persistence.embed.EntityA_Coll_StringXml</class>
- <class>org.apache.openjpa.persistence.embed.EntityA_Coll_Embed_EmbedXml</class>
- <class>org.apache.openjpa.persistence.embed.Embed_EmbedXml</class>
- <class>org.apache.openjpa.persistence.embed.EmbedXml</class>
- <class>org.apache.openjpa.persistence.embed.CustomerXml</class>
- <class>org.apache.openjpa.persistence.embed.OrderXml</class>
- <properties>
- <property name="openjpa.jdbc.SynchronizeMappings"
- value="buildSchema(ForeignKeys=true)"/>
- </properties>
- </persistence-unit>
-
- <persistence-unit name="native-seq-pu">
- <mapping-file>org/apache/openjpa/persistence/sequence/sequence-orm.xml</mapping-file>
- <class>org.apache.openjpa.persistence.jdbc.annotations.NativeSequenceEntity</class>
- <class>org.apache.openjpa.persistence.jdbc.annotations.NativeORMSequenceEntity</class>
- <properties>
- <property name="openjpa.jdbc.SynchronizeMappings"
- value="buildSchema"/>
- </properties>
- </persistence-unit>
-
+ <persistence-unit name="embed-pu">
+ <mapping-file>org/apache/openjpa/persistence/embed/embed-orm.xml</mapping-file>
+ <class>org.apache.openjpa.persistence.embed.EntityA_Coll_StringXml</class>
+ <class>org.apache.openjpa.persistence.embed.EntityA_Coll_Embed_EmbedXml</class>
+ <class>org.apache.openjpa.persistence.embed.Embed_EmbedXml</class>
+ <class>org.apache.openjpa.persistence.embed.EmbedXml</class>
+ <class>org.apache.openjpa.persistence.embed.CustomerXml</class>
+ <class>org.apache.openjpa.persistence.embed.OrderXml</class>
+ <properties>
+ <property name="openjpa.jdbc.SynchronizeMappings"
+ value="buildSchema(ForeignKeys=true)"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="native-seq-pu">
+ <mapping-file>org/apache/openjpa/persistence/sequence/sequence-orm.xml</mapping-file>
+ <class>org.apache.openjpa.persistence.jdbc.annotations.NativeSequenceEntity</class>
+ <class>org.apache.openjpa.persistence.jdbc.annotations.NativeORMSequenceEntity</class>
+ <properties>
+ <property name="openjpa.jdbc.SynchronizeMappings"
+ value="buildSchema"/>
+ </properties>
+ </persistence-unit>
+
</persistence>
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/META-INF/persistence-config.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/META-INF/persistence-config.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/META-INF/persistence-config.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/META-INF/persistence-config.xml Mon Mar 23 12:42:41 2009
@@ -21,47 +21,47 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0">
- <!-- =================================================================== -->
- <!-- Following configurations are used for testing old and new style -->
- <!-- configuration properties in javax.* and openjpa.* namespace. -->
- <!-- -->
- <!-- @see org.apache.openjpa.lib.conf.TestEquivalentConfig -->
- <!-- =================================================================== -->
-
- <persistence-unit name="old-style">
- <properties>
- <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
- </properties>
- </persistence-unit>
-
- <persistence-unit name="new-style">
- <properties>
- <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="javax.persistence.jdbc.url" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
- </properties>
- </persistence-unit>
-
- <persistence-unit name="mixed-style">
- <properties>
- <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
- </properties>
- </persistence-unit>
-
- <persistence-unit name="conflict-style">
- <properties>
- <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
- </properties>
- </persistence-unit>
-
- <persistence-unit name="system-configured">
- </persistence-unit>
-
- <persistence-unit name="runtime-configured">
- </persistence-unit>
-
-
+ <!-- =================================================================== -->
+ <!-- Following configurations are used for testing old and new style -->
+ <!-- configuration properties in javax.* and openjpa.* namespace. -->
+ <!-- -->
+ <!-- @see org.apache.openjpa.lib.conf.TestEquivalentConfig -->
+ <!-- =================================================================== -->
+
+ <persistence-unit name="old-style">
+ <properties>
+ <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="new-style">
+ <properties>
+ <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="javax.persistence.jdbc.url" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="mixed-style">
+ <properties>
+ <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="conflict-style">
+ <properties>
+ <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/openjpa-test-database;create=true"/>
+ </properties>
+ </persistence-unit>
+
+ <persistence-unit name="system-configured">
+ </persistence-unit>
+
+ <persistence-unit name="runtime-configured">
+ </persistence-unit>
+
+
</persistence>
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/product-derivations-load.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/product-derivations-load.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/product-derivations-load.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/product-derivations-load.xml Mon Mar 23 12:42:41 2009
@@ -1,27 +1,27 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<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-unit name="foo"/>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<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-unit name="foo"/>
</persistence>
\ No newline at end of file
Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/lib/conf/product-derivations-load.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/orm.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/orm.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/orm.xml Mon Mar 23 12:42:41 2009
@@ -1,160 +1,160 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
- http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
-version="1.0">
-
-<persistence-unit-metadata>
- <persistence-unit-defaults>
- <entity-listeners>
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.DefaultCallbackListener">
- <pre-persist method-name="prePersist" />
- <post-persist method-name="postPersist" />
- <pre-remove method-name="preRemove" />
- <post-remove method-name="postRemove" />
- <pre-update method-name="preUpdate" />
- <post-update method-name="postUpdate" />
- <post-load method-name="postLoad" />
- </entity-listener>
- </entity-listeners>
- </persistence-unit-defaults>
-</persistence-unit-metadata>
-
-<!-- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Schedule" metadata-complete="true">
- <description>
- Schedule class represents the superclass of this app...
- </description>
- <inheritance strategy="TABLE_PER_CLASS" />
-
- <entity-listeners>
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.DateValidator">
- <pre-persist method-name="prePersist" />
- <post-persist method-name="postPersist" />
- </entity-listener>
-
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.StringValidator">
- <pre-persist method-name="prePersist" />
- <post-persist method-name="postPersist" />
- </entity-listener>
- </entity-listeners>
-
- <attributes>
- <id name="id">
- <generated-value strategy="AUTO" />
- </id>
- <basic name="dob">
- <temporal>DATE</temporal>
- </basic>
- <basic name="startDate">
- <temporal>TIME</temporal>
- </basic>
- <basic name="endDate">
- <temporal>TIMESTAMP</temporal>
- </basic>
- <basic name="name">
- </basic>
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.FlightSchedule" metadata-complete="true">
- <description>
- FlightSchedule, subclass of schedule specifies the real life flight schedule
- </description>
-
- <table name="Flight_Sched">
- <unique-constraint>
- <column-name>planeName</column-name>
- </unique-constraint>
- </table>
-
- <attributes>
- <id name="FlightNum">
- <generated-value strategy="AUTO" />
- </id>
- <basic name="planeName">
- <column name="flight_name"/>
- </basic>
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Employee" metadata-complete="true">
- <inheritance strategy="JOINED" />
-
- <entity-listeners>
- <entity-listener class="annotations.common.apps.NameValidator">
- <pre-persist method-name="validateName" />
- <pre-remove method-name="validateNothing1" />
- <post-remove method-name="validateNothing" />
- <post-update method-name="testpost" />
- </entity-listener>
-
- <entity-listener class="annotations.common.apps.LongNameValidator">
- <pre-persist method-name="validateName" />
- <post-update method-name="testpost" />
- </entity-listener>
- </entity-listeners>
-
- <attributes>
- <id name="id">
- </id>
- <basic name="name">
- </basic>
- <transient name="syncTime" />
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.ContractEmployee" metadata-complete="true">
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TxRollbackEntity" metadata-complete="true">
- </entity> -->
-
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity">
- <exclude-default-listeners />
- <entity-listeners>
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener">
- <post-remove method-name="verifyPostRemove" />
- <post-update method-name="verifyPostUpdate" />
- </entity-listener>
-
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener2">
- <pre-update method-name="verifyPreUpdate" />
- <post-load method-name="verifyPostLoad" />
- </entity-listener>
- </entity-listeners>
-
- <pre-persist method-name="verifyPrePersist" />
- <post-persist method-name="verifyPostPersist" />
- <pre-remove method-name="verifyPreRemove" />
-
- <attributes>
- <id name="id">
- <generated-value strategy="AUTO" />
- </id>
- <basic name="name">
- </basic>
- <basic name="surname">
- </basic>
- </attributes>
- </entity>
-</entity-mappings>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
+ http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
+version="1.0">
+
+<persistence-unit-metadata>
+ <persistence-unit-defaults>
+ <entity-listeners>
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.DefaultCallbackListener">
+ <pre-persist method-name="prePersist" />
+ <post-persist method-name="postPersist" />
+ <pre-remove method-name="preRemove" />
+ <post-remove method-name="postRemove" />
+ <pre-update method-name="preUpdate" />
+ <post-update method-name="postUpdate" />
+ <post-load method-name="postLoad" />
+ </entity-listener>
+ </entity-listeners>
+ </persistence-unit-defaults>
+</persistence-unit-metadata>
+
+<!-- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Schedule" metadata-complete="true">
+ <description>
+ Schedule class represents the superclass of this app...
+ </description>
+ <inheritance strategy="TABLE_PER_CLASS" />
+
+ <entity-listeners>
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.DateValidator">
+ <pre-persist method-name="prePersist" />
+ <post-persist method-name="postPersist" />
+ </entity-listener>
+
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.StringValidator">
+ <pre-persist method-name="prePersist" />
+ <post-persist method-name="postPersist" />
+ </entity-listener>
+ </entity-listeners>
+
+ <attributes>
+ <id name="id">
+ <generated-value strategy="AUTO" />
+ </id>
+ <basic name="dob">
+ <temporal>DATE</temporal>
+ </basic>
+ <basic name="startDate">
+ <temporal>TIME</temporal>
+ </basic>
+ <basic name="endDate">
+ <temporal>TIMESTAMP</temporal>
+ </basic>
+ <basic name="name">
+ </basic>
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.FlightSchedule" metadata-complete="true">
+ <description>
+ FlightSchedule, subclass of schedule specifies the real life flight schedule
+ </description>
+
+ <table name="Flight_Sched">
+ <unique-constraint>
+ <column-name>planeName</column-name>
+ </unique-constraint>
+ </table>
+
+ <attributes>
+ <id name="FlightNum">
+ <generated-value strategy="AUTO" />
+ </id>
+ <basic name="planeName">
+ <column name="flight_name"/>
+ </basic>
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Employee" metadata-complete="true">
+ <inheritance strategy="JOINED" />
+
+ <entity-listeners>
+ <entity-listener class="annotations.common.apps.NameValidator">
+ <pre-persist method-name="validateName" />
+ <pre-remove method-name="validateNothing1" />
+ <post-remove method-name="validateNothing" />
+ <post-update method-name="testpost" />
+ </entity-listener>
+
+ <entity-listener class="annotations.common.apps.LongNameValidator">
+ <pre-persist method-name="validateName" />
+ <post-update method-name="testpost" />
+ </entity-listener>
+ </entity-listeners>
+
+ <attributes>
+ <id name="id">
+ </id>
+ <basic name="name">
+ </basic>
+ <transient name="syncTime" />
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.ContractEmployee" metadata-complete="true">
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TxRollbackEntity" metadata-complete="true">
+ </entity> -->
+
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity">
+ <exclude-default-listeners />
+ <entity-listeners>
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener">
+ <post-remove method-name="verifyPostRemove" />
+ <post-update method-name="verifyPostUpdate" />
+ </entity-listener>
+
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener2">
+ <pre-update method-name="verifyPreUpdate" />
+ <post-load method-name="verifyPostLoad" />
+ </entity-listener>
+ </entity-listeners>
+
+ <pre-persist method-name="verifyPrePersist" />
+ <post-persist method-name="verifyPostPersist" />
+ <pre-remove method-name="verifyPreRemove" />
+
+ <attributes>
+ <id name="id">
+ <generated-value strategy="AUTO" />
+ </id>
+ <basic name="name">
+ </basic>
+ <basic name="surname">
+ </basic>
+ </attributes>
+ </entity>
+</entity-mappings>
Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/orm.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/persistence.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/persistence.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/persistence.xml Mon Mar 23 12:42:41 2009
@@ -1,54 +1,54 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
- <persistence-unit name="TestConv" transaction-type="RESOURCE_LOCAL">
- <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbedOwner</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.AnnoTest1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.AnnoTest2</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.AnnoTest3</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.ContractEmployee</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Employee</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Entity1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Entity2</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Flat1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Flat2</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Generator</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TablePerClass1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TablePerClass2</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.OrderByEntity</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddableSuperSub</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.PropertyAccess1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddedIdEntity</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbedValue</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbedValue2</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Schedule</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.FlightSchedule</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddedIdClass</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddableSuper</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TxRollbackEntity</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Party</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Store</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Site</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Party1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Store1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Site1</class>
- </persistence-unit>
-</persistence>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+ <persistence-unit name="TestConv" transaction-type="RESOURCE_LOCAL">
+ <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbedOwner</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.AnnoTest1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.AnnoTest2</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.AnnoTest3</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.ContractEmployee</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Employee</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Entity1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Entity2</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Flat1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Flat2</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Generator</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TablePerClass1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TablePerClass2</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.OrderByEntity</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddableSuperSub</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.PropertyAccess1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddedIdEntity</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbedValue</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbedValue2</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Schedule</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.FlightSchedule</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddedIdClass</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.EmbeddableSuper</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TxRollbackEntity</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Party</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Store</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Site</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Party1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Store1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Site1</class>
+ </persistence-unit>
+</persistence>
Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/annotype/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/orm.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/orm.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/orm.xml Mon Mar 23 12:42:41 2009
@@ -1,160 +1,160 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
- http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
-version="1.0">
-
-<persistence-unit-metadata>
- <persistence-unit-defaults>
- <entity-listeners>
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.DefaultCallbackListener">
- <pre-persist method-name="prePersist" />
- <post-persist method-name="postPersist" />
- <pre-remove method-name="preRemove" />
- <post-remove method-name="postRemove" />
- <pre-update method-name="preUpdate" />
- <post-update method-name="postUpdate" />
- <post-load method-name="postLoad" />
- </entity-listener>
- </entity-listeners>
- </persistence-unit-defaults>
-</persistence-unit-metadata>
-
-<!-- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Schedule" metadata-complete="true">
- <description>
- Schedule class represents the superclass of this app...
- </description>
- <inheritance strategy="TABLE_PER_CLASS" />
-
- <entity-listeners>
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.DateValidator">
- <pre-persist method-name="prePersist" />
- <post-persist method-name="postPersist" />
- </entity-listener>
-
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.StringValidator">
- <pre-persist method-name="prePersist" />
- <post-persist method-name="postPersist" />
- </entity-listener>
- </entity-listeners>
-
- <attributes>
- <id name="id">
- <generated-value strategy="AUTO" />
- </id>
- <basic name="dob">
- <temporal>DATE</temporal>
- </basic>
- <basic name="startDate">
- <temporal>TIME</temporal>
- </basic>
- <basic name="endDate">
- <temporal>TIMESTAMP</temporal>
- </basic>
- <basic name="name">
- </basic>
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.FlightSchedule" metadata-complete="true">
- <description>
- FlightSchedule, subclass of schedule specifies the real life flight schedule
- </description>
-
- <table name="Flight_Sched">
- <unique-constraint>
- <column-name>planeName</column-name>
- </unique-constraint>
- </table>
-
- <attributes>
- <id name="FlightNum">
- <generated-value strategy="AUTO" />
- </id>
- <basic name="planeName">
- <column name="flight_name"/>
- </basic>
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Employee" metadata-complete="true">
- <inheritance strategy="JOINED" />
-
- <entity-listeners>
- <entity-listener class="annotations.common.apps.NameValidator">
- <pre-persist method-name="validateName" />
- <pre-remove method-name="validateNothing1" />
- <post-remove method-name="validateNothing" />
- <post-update method-name="testpost" />
- </entity-listener>
-
- <entity-listener class="annotations.common.apps.LongNameValidator">
- <pre-persist method-name="validateName" />
- <post-update method-name="testpost" />
- </entity-listener>
- </entity-listeners>
-
- <attributes>
- <id name="id">
- </id>
- <basic name="name">
- </basic>
- <transient name="syncTime" />
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.ContractEmployee" metadata-complete="true">
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TxRollbackEntity" metadata-complete="true">
- </entity> -->
-
-
- <!-- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity">
- <exclude-default-listeners />
- <entity-listeners>
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener">
- <post-remove method-name="verifyPostRemove" />
- <post-update method-name="verifyPostUpdate" />
- </entity-listener>
-
- <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener2">
- <pre-update method-name="verifyPreUpdate" />
- <post-load method-name="verifyPostLoad" />
- </entity-listener>
- </entity-listeners>
-
- <pre-persist method-name="verifyPrePersist" />
- <post-persist method-name="verifyPostPersist" />
- <pre-remove method-name="verifyPreRemove" />
-
- <attributes>
- <id name="id">
- <generated-value strategy="AUTO" />
- </id>
- <basic name="name">
- </basic>
- <basic name="surname">
- </basic>
- </attributes>
- </entity> -->
-</entity-mappings>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
+ http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
+version="1.0">
+
+<persistence-unit-metadata>
+ <persistence-unit-defaults>
+ <entity-listeners>
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.DefaultCallbackListener">
+ <pre-persist method-name="prePersist" />
+ <post-persist method-name="postPersist" />
+ <pre-remove method-name="preRemove" />
+ <post-remove method-name="postRemove" />
+ <pre-update method-name="preUpdate" />
+ <post-update method-name="postUpdate" />
+ <post-load method-name="postLoad" />
+ </entity-listener>
+ </entity-listeners>
+ </persistence-unit-defaults>
+</persistence-unit-metadata>
+
+<!-- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Schedule" metadata-complete="true">
+ <description>
+ Schedule class represents the superclass of this app...
+ </description>
+ <inheritance strategy="TABLE_PER_CLASS" />
+
+ <entity-listeners>
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.DateValidator">
+ <pre-persist method-name="prePersist" />
+ <post-persist method-name="postPersist" />
+ </entity-listener>
+
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.StringValidator">
+ <pre-persist method-name="prePersist" />
+ <post-persist method-name="postPersist" />
+ </entity-listener>
+ </entity-listeners>
+
+ <attributes>
+ <id name="id">
+ <generated-value strategy="AUTO" />
+ </id>
+ <basic name="dob">
+ <temporal>DATE</temporal>
+ </basic>
+ <basic name="startDate">
+ <temporal>TIME</temporal>
+ </basic>
+ <basic name="endDate">
+ <temporal>TIMESTAMP</temporal>
+ </basic>
+ <basic name="name">
+ </basic>
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.FlightSchedule" metadata-complete="true">
+ <description>
+ FlightSchedule, subclass of schedule specifies the real life flight schedule
+ </description>
+
+ <table name="Flight_Sched">
+ <unique-constraint>
+ <column-name>planeName</column-name>
+ </unique-constraint>
+ </table>
+
+ <attributes>
+ <id name="FlightNum">
+ <generated-value strategy="AUTO" />
+ </id>
+ <basic name="planeName">
+ <column name="flight_name"/>
+ </basic>
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.Employee" metadata-complete="true">
+ <inheritance strategy="JOINED" />
+
+ <entity-listeners>
+ <entity-listener class="annotations.common.apps.NameValidator">
+ <pre-persist method-name="validateName" />
+ <pre-remove method-name="validateNothing1" />
+ <post-remove method-name="validateNothing" />
+ <post-update method-name="testpost" />
+ </entity-listener>
+
+ <entity-listener class="annotations.common.apps.LongNameValidator">
+ <pre-persist method-name="validateName" />
+ <post-update method-name="testpost" />
+ </entity-listener>
+ </entity-listeners>
+
+ <attributes>
+ <id name="id">
+ </id>
+ <basic name="name">
+ </basic>
+ <transient name="syncTime" />
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.ContractEmployee" metadata-complete="true">
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.TxRollbackEntity" metadata-complete="true">
+ </entity> -->
+
+
+ <!-- <entity class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity">
+ <exclude-default-listeners />
+ <entity-listeners>
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener">
+ <post-remove method-name="verifyPostRemove" />
+ <post-update method-name="verifyPostUpdate" />
+ </entity-listener>
+
+ <entity-listener class="org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.EntityDDListener2">
+ <pre-update method-name="verifyPreUpdate" />
+ <post-load method-name="verifyPostLoad" />
+ </entity-listener>
+ </entity-listeners>
+
+ <pre-persist method-name="verifyPrePersist" />
+ <post-persist method-name="verifyPostPersist" />
+ <pre-remove method-name="verifyPreRemove" />
+
+ <attributes>
+ <id name="id">
+ <generated-value strategy="AUTO" />
+ </id>
+ <basic name="name">
+ </basic>
+ <basic name="surname">
+ </basic>
+ </attributes>
+ </entity> -->
+</entity-mappings>
Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/orm.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/persistence.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/persistence.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/persistence.xml Mon Mar 23 12:42:41 2009
@@ -1,33 +1,33 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
- <persistence-unit name="TestConv" transaction-type="RESOURCE_LOCAL">
- <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.Employee</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.ContractEmployee</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.TxRollbackEntity</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity2</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntitySub</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.Entity1</class>
- <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.Entity2</class>
- </persistence-unit>
-
-</persistence>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+ <persistence-unit name="TestConv" transaction-type="RESOURCE_LOCAL">
+ <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.Employee</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.ContractEmployee</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.TxRollbackEntity</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntity2</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.LifeCycleDDEntitySub</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.Entity1</class>
+ <class>org.apache.openjpa.persistence.annotations.common.apps.annotApp.ddtype.Entity2</class>
+ </persistence-unit>
+
+</persistence>
Propchange: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/common/apps/annotApp/ddtype/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/xml/orm.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/xml/orm.xml?rev=757388&r1=757387&r2=757388&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/xml/orm.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/annotations/xml/orm.xml Mon Mar 23 12:42:41 2009
@@ -16,48 +16,48 @@
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
--->
-
-<!-- A pair of entities are defined with metadata-complete attribute set to
- true and false respectively. Both entities carry identical annotation.
-
+-->
+
+<!-- A pair of entities are defined with metadata-complete attribute set to
+ true and false respectively. Both entities carry identical annotation.
+
-->
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
version="1.0">
- <entity class="org.apache.openjpa.persistence.annotations.xml.EntityA" metadata-complete="true">
- <inheritance strategy="JOINED"/>
- <attributes>
- <id name="id">
- <column name="ID" />
- <generated-value strategy="SEQUENCE"/>
- </id>
- <basic name="name" optional="false">
- </basic>
- </attributes>
- </entity>
-
- <entity class="org.apache.openjpa.persistence.annotations.xml.EntityB" metadata-complete="false">
- <named-query name="EntityB.SelectAll">
- <query>SELECT b FROM EntityB b</query>
- </named-query>
- <attributes>
- <id name="id">
- <column name="ID" />
- </id>
- <basic name="name">
- </basic>
- </attributes>
- </entity>
- <entity class="org.apache.openjpa.persistence.annotations.xml.DerivedA"
- metadata-complete="true">
- </entity>
- <entity class="org.apache.openjpa.persistence.annotations.xml.DerivedB"
- metadata-complete="false">
- <attributes>
- <basic name="data">
- </basic>
- </attributes>
- </entity>
+ <entity class="org.apache.openjpa.persistence.annotations.xml.EntityA" metadata-complete="true">
+ <inheritance strategy="JOINED"/>
+ <attributes>
+ <id name="id">
+ <column name="ID" />
+ <generated-value strategy="SEQUENCE"/>
+ </id>
+ <basic name="name" optional="false">
+ </basic>
+ </attributes>
+ </entity>
+
+ <entity class="org.apache.openjpa.persistence.annotations.xml.EntityB" metadata-complete="false">
+ <named-query name="EntityB.SelectAll">
+ <query>SELECT b FROM EntityB b</query>
+ </named-query>
+ <attributes>
+ <id name="id">
+ <column name="ID" />
+ </id>
+ <basic name="name">
+ </basic>
+ </attributes>
+ </entity>
+ <entity class="org.apache.openjpa.persistence.annotations.xml.DerivedA"
+ metadata-complete="true">
+ </entity>
+ <entity class="org.apache.openjpa.persistence.annotations.xml.DerivedB"
+ metadata-complete="false">
+ <attributes>
+ <basic name="data">
+ </basic>
+ </attributes>
+ </entity>
</entity-mappings>