Revision 840abdb1
Added by Andreas Müller almost 9 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NonViralName.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import javax.persistence.Entity; |
23 | 23 |
import javax.persistence.FetchType; |
24 |
import javax.persistence.JoinColumn; |
|
24 | 25 |
import javax.persistence.ManyToOne; |
25 | 26 |
import javax.persistence.OneToMany; |
26 | 27 |
import javax.persistence.Transient; |
... | ... | |
183 | 184 |
@ManyToOne(fetch = FetchType.LAZY) |
184 | 185 |
// @Target(TeamOrPersonBase.class) |
185 | 186 |
@Cascade(CascadeType.SAVE_UPDATE) |
187 |
@JoinColumn(name="combinationAuthorship_id") |
|
186 | 188 |
@CacheUpdate("authorshipCache") |
187 | 189 |
@IndexedEmbedded |
188 | 190 |
private TeamOrPersonBase<?> combinationAuthorTeam; |
... | ... | |
193 | 195 |
@ManyToOne(fetch = FetchType.LAZY) |
194 | 196 |
// @Target(TeamOrPersonBase.class) |
195 | 197 |
@Cascade(CascadeType.SAVE_UPDATE) |
198 |
@JoinColumn(name="exCombinationAuthorship_id") |
|
196 | 199 |
@CacheUpdate("authorshipCache") |
197 | 200 |
@IndexedEmbedded |
198 | 201 |
private TeamOrPersonBase<?> exCombinationAuthorTeam; |
... | ... | |
203 | 206 |
@ManyToOne(fetch = FetchType.LAZY) |
204 | 207 |
// @Target(TeamOrPersonBase.class) |
205 | 208 |
@Cascade(CascadeType.SAVE_UPDATE) |
209 |
@JoinColumn(name="basionymAuthorship_id") |
|
206 | 210 |
@CacheUpdate("authorshipCache") |
207 | 211 |
@IndexedEmbedded |
208 | 212 |
private TeamOrPersonBase<?> basionymAuthorTeam; |
... | ... | |
213 | 217 |
@ManyToOne(fetch = FetchType.LAZY) |
214 | 218 |
// @Target(TeamOrPersonBase.class) |
215 | 219 |
@Cascade(CascadeType.SAVE_UPDATE) |
220 |
@JoinColumn(name="exBasionymAuthorship_id") |
|
216 | 221 |
@CacheUpdate("authorshipCache") |
217 | 222 |
@IndexedEmbedded |
218 | 223 |
private TeamOrPersonBase<?> exBasionymAuthorTeam; |
... | ... | |
1248 | 1253 |
child.hybridChildRelations.remove(hybridRelation); |
1249 | 1254 |
hybridRelation.setHybridName(null); |
1250 | 1255 |
hybridRelation.setParentName(null); |
1251 |
|
|
1256 |
|
|
1252 | 1257 |
} |
1253 | 1258 |
if (this.equals(child)){ |
1254 | 1259 |
parent.hybridParentRelations.remove(hybridRelation); |
1255 | 1260 |
this.hybridChildRelations.remove(hybridRelation); |
1256 | 1261 |
hybridRelation.setHybridName(null); |
1257 | 1262 |
hybridRelation.setParentName(null); |
1258 |
|
|
1263 |
|
|
1259 | 1264 |
} |
1260 |
|
|
1265 |
|
|
1261 | 1266 |
|
1262 | 1267 |
} |
1263 | 1268 |
|
Also available in: Unified diff
rename authorTeam -> authorship #4332 for name authors