Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote / src / main / resources / eu / etaxonomy / cdm / remote / dto / tdwg / mappings-deep.xml @ 224d902d

History | View | Annotate | Download (5.18 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE mappings PUBLIC "-//DOZER//DTD MAPPINGS//EN"
3
    "http://dozer.sourceforge.net/dtd/dozerbeanmapping.dtd">
4
    
5
<mappings>       
6
    <!-- description package -->
7
    <mapping>
8
        <class-a>eu.etaxonomy.cdm.model.description.DescriptionBase</class-a>
9
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.SpeciesProfileModel</class-b>
10
        <field>
11
            <a>elements</a>
12
            <b>hasInformation</b>
13
            <a-hint>eu.etaxonomy.cdm.model.description.Distribution,eu.etaxonomy.cdm.model.description.TextData</a-hint>
14
            <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.InfoItem,eu.etaxonomy.cdm.remote.dto.tdwg.voc.InfoItem</b-hint>
15
        </field>
16
    </mapping>
17
    
18
    <mapping> 
19
        <class-a>eu.etaxonomy.cdm.model.description.TaxonDescription</class-a>
20
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.SpeciesProfileModel</class-b>
21
        <field custom-converter-id="relatedPageConverter" custom-converter-param="description">
22
            <a>uuid</a>
23
            <b>relation</b>
24
        </field>
25
        <field>
26
            <a>taxon</a>
27
            <b>aboutTaxon</b>
28
        </field>        
29
    </mapping>
30
    
31
    <mapping>
32
        <class-a>eu.etaxonomy.cdm.model.description.DescriptionElementBase</class-a>
33
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.InfoItem</class-b>
34
        <field>
35
            <a>feature</a>
36
            <b>category</b>
37
        </field>
38
        <field>
39
            <a>modifyingText</a>
40
            <b key="lang">context</b>
41
            <a-hint>eu.etaxonomy.cdm.model.common.LanguageString</a-hint>
42
            <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.StringType</b-hint>
43
        </field>
44
        <field>
45
            <a>modifiers</a>
46
            <b>contextValue</b>
47
        </field>
48
    </mapping>
49
    
50
    <mapping>
51
        <class-a>eu.etaxonomy.cdm.model.description.TextData</class-a>
52
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.InfoItem</class-b>
53
        <field>
54
            <a>multilanguageText</a>
55
            <b key="lang">hasContent</b>
56
            <a-hint>eu.etaxonomy.cdm.model.common.LanguageString</a-hint>
57
            <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.StringType</b-hint>
58
        </field>
59
    </mapping>
60
    
61
    <mapping>
62
        <class-a>eu.etaxonomy.cdm.model.description.Distribution</class-a>
63
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.InfoItem</class-b>
64
        <field>
65
            <a>status</a>
66
            <b>singleContextValue</b>
67
        </field>
68
        <field>
69
            <a>area</a>
70
            <b>hasSingleValue</b>
71
        </field>
72
    </mapping>
73
    <!-- taxon package -->
74
    <mapping>
75
        <class-a>eu.etaxonomy.cdm.model.taxon.TaxonBase</class-a>
76
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.TaxonConcept</class-b>
77
        <field custom-converter-id="relatedPageConverter" custom-converter-param="taxon">
78
            <a>uuid</a>
79
            <b>relation</b>
80
        </field>
81
        <field>
82
            <a>sec</a>
83
            <b>publishedInCitation</b>
84
        </field>
85
        <field type="one-way" custom-converter-id="hibernateProxyDeepConverter" custom-converter-param="authorship">
86
            <a>sec</a>
87
            <b>accordingTo</b>
88
        </field>
89
        <field>
90
            <a>name</a>
91
            <b>hasName</b>
92
        </field>
93
    </mapping>
94
    
95
    <mapping> 
96
        <class-a>eu.etaxonomy.cdm.model.taxon.Synonym</class-a>
97
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.TaxonConcept</class-b>  
98
     </mapping>
99
    
100
    <mapping> 
101
        <class-a>eu.etaxonomy.cdm.model.taxon.Taxon</class-a>
102
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.TaxonConcept</class-b>
103
        <field>
104
          <a>relationsToThisTaxon</a>
105
          <b>hasRelationship</b>
106
          <a-hint>eu.etaxonomy.cdm.model.taxon.TaxonRelationship</a-hint>
107
          <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
108
        </field>
109
        <!-- FIXME: complete mapping #6324 
110
        <field>
111
          <a>synonyms</a>
112
          <b>hasRelationship</b>
113
          <a-hint>eu.etaxonomy.cdm.model.taxon.Synonym</a-hint>
114
          <b-hint>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</b-hint>
115
          // Synonym can not be directly mapped to Relationship !!!!
116
        </field>
117
          -->
118
        <field>
119
            <a>descriptions</a>
120
            <b>describedBy</b>
121
        </field>
122
    </mapping>
123
    
124
    <mapping>
125
        <class-a>eu.etaxonomy.cdm.model.common.RelationshipBase</class-a>
126
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</class-b>
127
        <field>
128
            <a>type</a>
129
            <b>relationshipCategory</b>
130
        </field>
131
    </mapping>
132
    
133
   <mapping> 
134
        <class-a>eu.etaxonomy.cdm.model.taxon.TaxonRelationship</class-a>
135
        <class-b>eu.etaxonomy.cdm.remote.dto.tdwg.voc.Relationship</class-b>
136
       <field>
137
           <a>fromTaxon</a>
138
           <b>fromTaxon</b>
139
       </field>
140
       <field>
141
         <a>toTaxon</a>
142
         <b>toTaxon</b>
143
       </field>
144
       <field-exclude>
145
           <a>createdBy.username</a>
146
           <b>creator</b>
147
       </field-exclude>
148
       <field-exclude>
149
           <a>updatedBy.username</a>
150
           <b>contributor</b>
151
       </field-exclude>
152
    </mapping>
153
    
154
</mappings>
Add picture from clipboard (Maximum size: 40 MB)