Project

General

Profile

« Previous | Next » 

Revision 26e1dd94

Added by Andreas Kohlbecker over 6 years ago

fixing LIE

View differences:

src/main/java/eu/etaxonomy/cdm/service/RegistrationWorkingSetService.java
79 79
            }
80 80
    );
81 81

  
82
    /**
83
    *
84
    */
85
   private static final List<String> FIELDUNIT_INIT_STRATEGY = Arrays.asList(new String[]{
86
           "$",
87
           "gatheringEvent.$",
88
           "gatheringEvent.country",
89
           "gatheringEvent.collectingAreas",
90
           "gatheringEvent.actor"
91
   });
92

  
93
   /**
94
    *
95
    */
96
   private static final List<String> DERIVEDUNIT_INIT_STRATEGY = Arrays.asList(new String[]{
97
           "collection",
98
           "storedUnder",
99
           "preservation",
100
           "recordBasis",
101
           "sex",
102
           "lifeStage",
103
           "kindOfUnit",
104
           "derivedFrom.$",
105
           "derivedFrom.type",
106
           "specimenTypeDesignations"
107
   });
108

  
82 109
    /**
83 110
     *
84 111
     */
......
182 209
                    Set<SpecimenOrObservationBase> nextSobs = null;
183 210
                    for(@SuppressWarnings("rawtypes") SpecimenOrObservationBase sob : sobs){
184 211
                        if(sob instanceof DerivedUnit) {
185
                            defaultBeanInitializer.initialize(sob, Arrays.asList(new String[]{
186
                                    "collection",
187
                                    "storedUnder",
188
                                    "preservation",
189
                                    "recordBasis",
190
                                    "sex",
191
                                    "lifeStage",
192
                                    "kindOfUnit",
193
                                    "derivedFrom.$",
194
                                    "derivedFrom.type"
195
                            }));
212
                            defaultBeanInitializer.initialize(sob, DERIVEDUNIT_INIT_STRATEGY);
196 213
                            nextSobs = ((DerivedUnit)sob).getOriginals();
197 214
                        }
198 215
                        if(sob instanceof FieldUnit){
199
                            defaultBeanInitializer.initialize(sob, Arrays.asList(new String[]{
200
                                    "$",
201
                                    "gatheringEvent.$",
202
                                    "gatheringEvent.country",
203
                                    "gatheringEvent.collectingAreas",
204
                                    "gatheringEvent.actor"
205
                            }));
216
                            defaultBeanInitializer.initialize(sob, FIELDUNIT_INIT_STRATEGY);
206 217
                            int i = 0;
207 218
                        }
208 219
                    }

Also available in: Unified diff