fix #6948 ref #6324 commenting and removing broken dozer mapping for synonymRelations
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Fri, 15 Sep 2017 08:58:45 +0000 (10:58 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Fri, 15 Sep 2017 08:58:55 +0000 (10:58 +0200)
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-deep.xml

index 1784bfc62ad54b2bb5aa77fcc6c4205388a9e224..8407692f76a3ca77538a15efd829686a0937b394 100644 (file)
           <a-hint>eu.etaxonomy.cdm.model.taxon.TaxonRelationship</a-hint>
           <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
         </field>
+        <!-- FIXME: complete mapping #6324 
         <field>
-          <!-- FIXME: this mapping is no longer valid see issue #6324 -->
-          <a>synonymRelations</a>
+          <a>synonyms</a>
           <b>hasRelationship</b>
-          <a-hint>eu.etaxonomy.cdm.model.taxon.TaxonRelationship</a-hint>
+          <a-hint>eu.etaxonomy.cdm.model.taxon.Synonym</a-hint>
           <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
+          // Synonym can not be directly mapped to Relationship !!!!
         </field>
+          -->
         <field>
             <a>descriptions</a>
             <b>describedBy</b>
            <a>updatedBy.username</a>
            <b>contributor</b>
        </field-exclude>
-    </mapping> 
-    
-    <mapping> 
-        <class-a>eu.etaxonomy.cdm.model.taxon.SynonymRelationship</class-a>
-        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</class-b>
-        <field>
-            <a>synonym</a>
-            <b>fromTaxon</b>
-        </field>
-        <field>
-            <a>acceptedTaxon</a>
-            <b>toTaxon</b>
-        </field>
-        <field-exclude>
-            <a>createdBy.username</a>
-            <b>creator</b>
-        </field-exclude>
-        <field-exclude>
-            <a>updatedBy.username</a>
-            <b>contributor</b>
-        </field-exclude>        
     </mapping>
     
 </mappings>