Author: tfischer
Date: Fri Mar  5 20:07:27 2010
New Revision: 919577

URL: http://svn.apache.org/viewvc?rev=919577&view=rev
Log:
added example override which adds suppressWarnings annotatioons to the peer 
classes

Added:
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/conf/
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/conf/control.xml
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/generatorDefs/
    
db/torque/torque4/trunk/torque-test/src/main/torque-gf/generatorDefs/peer.xml
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/
    db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/base/
    
db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/base/classAnnotations.vm

Added: db/torque/torque4/trunk/torque-test/src/main/torque-gf/conf/control.xml
URL: 
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/main/torque-gf/conf/control.xml?rev=919577&view=auto
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/main/torque-gf/conf/control.xml 
(added)
+++ db/torque/torque4/trunk/torque-test/src/main/torque-gf/conf/control.xml Fri 
Mar  5 20:07:27 2010
@@ -0,0 +1,26 @@
+<?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.
+-->
+<control loglevel="info"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    xsi:schemaLocation="http://db.apache.org/torque/gf/4.0/configuration 
http://db.apache.org/torque/gf/4.0/configuration.xsd";
+    xmlns="http://db.apache.org/torque/gf/4.0/configuration";>
+  <!-- no additional output, so this is empty -->
+</control>
+  
\ No newline at end of file

Added: 
db/torque/torque4/trunk/torque-test/src/main/torque-gf/generatorDefs/peer.xml
URL: 
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/main/torque-gf/generatorDefs/peer.xml?rev=919577&view=auto
==============================================================================
--- 
db/torque/torque4/trunk/torque-test/src/main/torque-gf/generatorDefs/peer.xml 
(added)
+++ 
db/torque/torque4/trunk/torque-test/src/main/torque-gf/generatorDefs/peer.xml 
Fri Mar  5 20:07:27 2010
@@ -0,0 +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.
+-->
+<generators xmlns="http://db.apache.org/torque/gf/4.0/configuration";
+    xsi:schemaLocation="http://db.apache.org/torque/gf/4.0/configuration 
http://db.apache.org/torque/gf/4.0/generator.xsd";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+
+  <generator name="torque.om.peer.base.classAnnotations"
+      xsi:type="velocityGenerator"
+      path="peer/base/classAnnotations.vm">
+  </generator>
+  
+  <mergepoint name="torque.om.basePeer.classJavadoc">
+    <action xsi:type="applyAction" 
generator="torque.om.peer.base.classJavadoc"/>
+    <action xsi:type="applyAction" 
generator="torque.om.peer.base.classAnnotations"/>
+  </mergepoint>
+</generators>
\ No newline at end of file

Added: 
db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/base/classAnnotations.vm
URL: 
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/base/classAnnotations.vm?rev=919577&view=auto
==============================================================================
--- 
db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/base/classAnnotations.vm
 (added)
+++ 
db/torque/torque4/trunk/torque-test/src/main/torque-gf/templates/peer/base/classAnnotations.vm
 Fri Mar  5 20:07:27 2010
@@ -0,0 +1,17 @@
+## 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.
+...@suppresswarnings({"unused", "unchecked"})
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to