Revision a0b80723
Added by Katja Luther over 14 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/CdmBase.java | ||
---|---|---|
79 | 79 |
@XmlTransient |
80 | 80 |
private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this); |
81 | 81 |
|
82 |
@XmlAttribute(name = "id", required = true) |
|
82 |
//@XmlAttribute(name = "id", required = true) |
|
83 |
@XmlTransient |
|
83 | 84 |
@Id |
84 | 85 |
@GeneratedValue(generator = "system-increment") |
85 | 86 |
@DocumentId |
... | ... | |
90 | 91 |
|
91 | 92 |
@XmlAttribute(required = true) |
92 | 93 |
@XmlJavaTypeAdapter(UUIDAdapter.class) |
93 |
@XmlID |
|
94 |
@Type(type="uuidUserType") |
|
94 |
@Type(type="uuidUserType") |
|
95 | 95 |
@NaturalId // This has the effect of placing a "unique" constraint on the database column |
96 |
@XmlID |
|
96 | 97 |
@Column(length=36) |
97 | 98 |
@Match(MatchMode.IGNORE) |
98 | 99 |
@NotNull |
Also available in: Unified diff
#1277 jaxb import, set id to @XmlTransient