changeset 946:854620e52971

Meta data: Make database ids identifiable with unique name "db-id" flys-artifacts/trunk@2361 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Jul 2011 16:14:52 +0000
parents 59ae2a823e73
children db8d93cb65fd
files flys-artifacts/ChangeLog flys-artifacts/src/main/resources/metadata/template.xml
diffstat 2 files changed, 18 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Jul 19 10:37:57 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Jul 19 16:14:52 2011 +0000
@@ -1,3 +1,8 @@
+2011-07-15  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/resources/metadata/template.xml: s/[a-z]+-id/db-id/
+	  Make database ids identifiable with unique name "db-id".
+
 2011-07-19  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/ManagedFacet.java:
--- a/flys-artifacts/src/main/resources/metadata/template.xml	Tue Jul 19 10:37:57 2011 +0000
+++ b/flys-artifacts/src/main/resources/metadata/template.xml	Tue Jul 19 16:14:52 2011 +0000
@@ -9,7 +9,7 @@
     <dc:elements>
       <river>
         <dc:attribute name="name" value="${river_name}"/>
-        <dc:attribute name="river-id" value="${river_id}"/>
+        <dc:attribute name="db-id" value="${river_id}"/>
         <discharge-table-nn>
           <discharge-table-gauge>
             <dc:context>
@@ -21,7 +21,7 @@
               <dc:elements>
                 <gauge>
                   <dc:attribute name="name" value="${gauge_name}"/>
-                  <dc:attribute name="gauge-id" value="${gauge_id}"/>
+                  <dc:attribute name="db-id" value="${gauge_id}"/>
                   <dc:context>
                     <dc:statement>
                       SELECT description   AS gauge_desc, 
@@ -37,7 +37,7 @@
                         <dc:attribute name="name" value="${gauge_desc}"/>
                         <dc:attribute name="from" value="${g_start}"/>
                         <dc:attribute name="to" value="${g_stop}"/>
-                        <dc:attribute name="discharge-id" value="${discharge_id}"/></historical>
+                        <dc:attribute name="db-id" value="${discharge_id}"/></historical>
                     </dc:elements>
                   </dc:context>
                 </gauge>
@@ -55,7 +55,7 @@
               <dc:elements>
                 <fixation>
                   <dc:attribute name="name" value="${fix_description}"/>
-                  <dc:attribute name="fix-id" value="${fix_id}"/>
+                  <dc:attribute name="db-id" value="${fix_id}"/>
                   <columns>
                     <dc:context>
                       <dc:statement>
@@ -67,7 +67,7 @@
                       <dc:elements>
                         <column>
                           <dc:attribute name="name" value="${fix_column_name}"/>
-                          <dc:attribute name="column-id" value="${fix_column_id}"/></column>
+                          <dc:attribute name="db-id" value="${fix_column_id}"/></column>
                       </dc:elements>
                     </dc:context>
                   </columns>
@@ -86,7 +86,7 @@
               <dc:elements>
                 <flood-protection>
                   <dc:attribute name="name" value="${prot_description}"/>
-                  <dc:attribute name="prot-id" value="${prot_id}"/>
+                  <dc:attribute name="db-id" value="${prot_id}"/>
                   <columns>
                     <dc:context>
                       <dc:statement>
@@ -98,7 +98,7 @@
                       <dc:elements>
                         <column>
                           <dc:attribute name="name" value="${prot_column_name}"/>
-                          <dc:attribute name="column-id" value="${prot_column_id}"/></column>
+                          <dc:attribute name="db-id" value="${prot_column_id}"/></column>
                       </dc:elements>
                     </dc:context>
                   </columns>
@@ -117,7 +117,7 @@
               <dc:elements>
                 <flood-water-mark>
                   <dc:attribute name="name" value="${fw_description}"/>
-                  <dc:attribute name="fw-id" value="${fw_id}"/>
+                  <dc:attribute name="db-id" value="${fw_id}"/>
                   <columns>
                     <dc:context>
                       <dc:statement>
@@ -129,7 +129,7 @@
                       <dc:elements>
                         <column>
                           <dc:attribute name="name" value="${fw_column_name}"/>
-                          <dc:attribute name="column-id" value="${fw_column_id}"/></column>
+                          <dc:attribute name="db-id" value="${fw_column_id}"/></column>
                       </dc:elements>
                     </dc:context>
                   </columns>
@@ -148,7 +148,7 @@
               <dc:elements>
                 <water-level>
                   <dc:attribute name="name" value="${wl_description}"/>
-                  <dc:attribute name="wl-id" value="${wl_id}"/>
+                  <dc:attribute name="db-id" value="${wl_id}"/>
                   <columns>
                     <dc:context>
                       <dc:statement>
@@ -160,7 +160,7 @@
                       <dc:elements>
                         <column>
                           <dc:attribute name="name" value="${wl_column_name}"/>
-                          <dc:attribute name="column-id" value="${wl_column_id}"/></column>
+                          <dc:attribute name="db-id" value="${wl_column_id}"/></column>
                       </dc:elements>
                     </dc:context>
                   </columns>
@@ -179,7 +179,7 @@
               <dc:elements>
                 <extra-longitudinal-section>
                   <dc:attribute name="name" value="${els_description}"/>
-                  <dc:attribute name="els-id" value="${els_id}"/>
+                  <dc:attribute name="db-id" value="${els_id}"/>
                   <columns>
                     <dc:context>
                       <dc:statement>
@@ -191,7 +191,7 @@
                       <dc:elements>
                         <column>
                             <dc:attribute name="name" value="${els_column_name}"/>
-                            <dc:attribute name="column-id" value="${els_column_id}"/></column>
+                            <dc:attribute name="db-id" value="${els_column_id}"/></column>
                       </dc:elements>
                     </dc:context>
                   </columns>

http://dive4elements.wald.intevation.org