Revision b95e836e
Added by Andreas Müller over 16 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/AnnotatableEntity.java | ||
---|---|---|
35 | 35 |
super(); |
36 | 36 |
} |
37 | 37 |
|
38 |
@OneToMany |
|
38 |
@OneToMany(fetch=FetchType.EAGER)
|
|
39 | 39 |
@Cascade({CascadeType.SAVE_UPDATE}) |
40 | 40 |
public Set<Marker> getMarkers(){ |
41 | 41 |
return this.markers; |
... | ... | |
50 | 50 |
this.markers = markers; |
51 | 51 |
} |
52 | 52 |
|
53 |
@OneToMany //(mappedBy="AnnotatedObj") |
|
53 |
@OneToMany(fetch=FetchType.EAGER) //(mappedBy="AnnotatedObj")
|
|
54 | 54 |
@Cascade({CascadeType.SAVE_UPDATE}) |
55 | 55 |
public Set<Annotation> getAnnotations(){ |
56 | 56 |
return this.annotations; |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NomenclaturalStatus.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase; |
14 | 14 |
import org.apache.log4j.Logger; |
15 |
|
|
16 |
import java.util.*; |
|
17 | 15 |
import javax.persistence.*; |
18 | 16 |
|
19 | 17 |
/** |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java | ||
---|---|---|
170 | 170 |
} |
171 | 171 |
|
172 | 172 |
|
173 |
@OneToMany(mappedBy="fromName") |
|
173 |
@OneToMany(mappedBy="fromName", fetch= FetchType.EAGER)
|
|
174 | 174 |
@Cascade({CascadeType.SAVE_UPDATE}) |
175 | 175 |
public Set<NameRelationship> getRelationsFromThisName() { |
176 | 176 |
return relationsFromThisName; |
... | ... | |
179 | 179 |
this.relationsFromThisName = relationsFromThisName; |
180 | 180 |
} |
181 | 181 |
|
182 |
@OneToMany(mappedBy="toName") |
|
182 |
@OneToMany(mappedBy="toName", fetch= FetchType.EAGER)
|
|
183 | 183 |
@Cascade({CascadeType.SAVE_UPDATE}) |
184 | 184 |
public Set<NameRelationship> getRelationsToThisName() { |
185 | 185 |
return relationsToThisName; |
... | ... | |
190 | 190 |
|
191 | 191 |
|
192 | 192 |
|
193 |
@OneToMany |
|
193 |
@OneToMany(fetch= FetchType.EAGER)
|
|
194 | 194 |
@Cascade({CascadeType.SAVE_UPDATE}) |
195 | 195 |
public Set<NomenclaturalStatus> getStatus() { |
196 | 196 |
return status; |
Also available in: Unified diff