Revision 45528416
Added by Katja Luther almost 15 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/LanguageStringBase.java | ||
---|---|---|
15 | 15 |
import javax.persistence.ManyToOne; |
16 | 16 |
import javax.persistence.MappedSuperclass; |
17 | 17 |
import javax.persistence.Transient; |
18 |
|
|
18 | 19 |
import javax.xml.bind.annotation.XmlAccessType; |
19 | 20 |
import javax.xml.bind.annotation.XmlAccessorType; |
20 | 21 |
import javax.xml.bind.annotation.XmlElement; |
... | ... | |
25 | 26 |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
26 | 27 |
|
27 | 28 |
import org.apache.log4j.Logger; |
29 |
import org.hibernate.annotations.CascadeType; |
|
30 |
import org.hibernate.annotations.Cascade; |
|
28 | 31 |
import org.hibernate.search.annotations.Field; |
29 | 32 |
import org.hibernate.search.annotations.FieldBridge; |
30 | 33 |
import org.hibernate.search.annotations.Index; |
... | ... | |
63 | 66 |
@XmlIDREF |
64 | 67 |
@XmlSchemaType(name = "IDREF") |
65 | 68 |
@ManyToOne(fetch = FetchType.EAGER) |
69 |
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE}) |
|
66 | 70 |
protected Language language; |
67 | 71 |
|
68 | 72 |
protected LanguageStringBase() { |
Also available in: Unified diff
merging branches/cdmlib/2.2 [7345:7377] to trunk
see also:
https://dev.e-taxonomy.eu/trac/changeset?new=branches%2Fcdmlib%2F2.2%407377&old=branches%2Fcdmlib%2F2.2%407345