Project

General

Profile

« Previous | Next » 

Revision f278f036

Added by Andreas Müller about 3 years ago

fix #6324 fix synonym dozer mapping for TDWG Ontology

View differences:

cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-deep.xml
108 108
          <a-hint>eu.etaxonomy.cdm.model.taxon.TaxonRelationship</a-hint>
109 109
          <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
110 110
        </field>
111
        <!-- FIXME: complete mapping #6324 
112 111
        <field>
113 112
          <a>synonyms</a>
114 113
          <b>hasRelationship</b>
115 114
          <a-hint>eu.etaxonomy.cdm.model.taxon.Synonym</a-hint>
116 115
          <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
117
          // Synonym can not be directly mapped to Relationship !!!!
118 116
        </field>
119
          -->
117
        
120 118
        <field>
121 119
            <a>descriptions</a>
122 120
            <b>describedBy</b>
......
153 151
       </field-exclude>
154 152
    </mapping>
155 153
    
154
    <mapping> 
155
        <class-a>eu.etaxonomy.cdm.model.taxon.Synonym</class-a>
156
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</class-b>
157
       <field>
158
           <a>this</a>
159
           <b>fromTaxon</b>
160
       </field>
161
       <field>
162
         <a>acceptedTaxon</a>
163
         <b>toTaxon</b>
164
       </field>
165
       <field>
166
            <a>type</a>
167
            <b>relationshipCategory</b>
168
        </field>
169
       <field-exclude>
170
           <a>createdBy.username</a>
171
           <b>creator</b>
172
       </field-exclude>
173
       <field-exclude>
174
           <a>updatedBy.username</a>
175
           <b>contributor</b>
176
       </field-exclude>
177
    </mapping>
178

  
179
    
156 180
</mappings>

Also available in: Unified diff