Project

General

Profile

« Previous | Next » 

Revision e141acff

Added by Andreas Müller about 3 years ago

fix #6324 fix taxon node dozer mapping for TDWG Ontology (cont.) - add missing mappings-deep.xml changes

View differences:

cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/dto/tdwg/mappings-deep.xml
114 114
          <a-hint>eu.etaxonomy.cdm.model.taxon.Synonym</a-hint>
115 115
          <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
116 116
        </field>
117
        <field>
118
          <!-- not fully correct to only use the first node, needs custom converter to implement correctly -->
119
          <a>taxonNodes[0].childNodes</a>
120
          <b>hasRelationship</b>
121
          <a-hint>eu.etaxonomy.cdm.model.taxon.TaxonNode</a-hint>
122
          <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
123
        </field>
117 124
        
118 125
        <field>
119 126
            <a>descriptions</a>
......
176 183
       </field-exclude>
177 184
    </mapping>
178 185

  
186
    <mapping> 
187
        <class-a>eu.etaxonomy.cdm.model.taxon.TaxonNode</class-a>
188
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</class-b>
189
       <field>
190
           <a>taxon</a>
191
           <b>fromTaxon</b>
192
       </field>
193
       <field>
194
         <a>parent.taxon</a>
195
         <b>toTaxon</b>
196
       </field>
197
       <field custom-converter-param="taxIncluded" type="one-way" custom-converter-id="constantConverter">
198
          <a>this</a>
199
          <b>relationshipCategory</b>
200
       </field>
201
       <field-exclude>
202
           <a>createdBy.username</a>
203
           <b>creator</b>
204
       </field-exclude>
205
       <field-exclude>
206
           <a>updatedBy.username</a>
207
           <b>contributor</b>
208
       </field-exclude>
209

  
210
</mapping>
179 211
    
180 212
</mappings>

Also available in: Unified diff