Revision 6e30169a
Added by Andreas Kohlbecker almost 12 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonNode.java | ||
---|---|---|
31 | 31 |
import org.apache.log4j.Logger; |
32 | 32 |
import org.hibernate.annotations.Cascade; |
33 | 33 |
import org.hibernate.annotations.CascadeType; |
34 |
import org.hibernate.annotations.Index; |
|
35 | 34 |
import org.hibernate.envers.Audited; |
36 | 35 |
import org.hibernate.search.annotations.ContainedIn; |
37 | 36 |
import org.hibernate.search.annotations.Indexed; |
... | ... | |
88 | 87 |
@ManyToOne(fetch = FetchType.LAZY) |
89 | 88 |
@Cascade({CascadeType.SAVE_UPDATE}) |
90 | 89 |
// TODO @NotNull // avoids creating a UNIQUE key for this field |
91 |
@IndexedEmbedded |
|
92 | 90 |
private Classification classification; |
93 | 91 |
|
94 | 92 |
@XmlElementWrapper(name = "childNodes") |
... | ... | |
96 | 94 |
@XmlIDREF |
97 | 95 |
@XmlSchemaType(name = "IDREF") |
98 | 96 |
@OneToMany(mappedBy="parent", fetch=FetchType.LAZY) |
99 |
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE})
|
|
97 |
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE}) |
|
100 | 98 |
private Set<TaxonNode> childNodes = new HashSet<TaxonNode>(); |
101 | 99 |
|
102 | 100 |
@XmlElement(name = "reference") |
Also available in: Unified diff
reverting erroneously commits r16027 to r16031