Revision 22847976
Added by Andreas Müller almost 2 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Credit.java | ||
---|---|---|
63 | 63 |
@Cascade({CascadeType.SAVE_UPDATE,CascadeType.MERGE}) |
64 | 64 |
private AgentBase<?> agent; |
65 | 65 |
|
66 |
@XmlElement(name = "TimePeriod", type= String.class) |
|
67 |
private TimePeriod timePeriod = TimePeriod.NewInstance(); |
|
68 |
|
|
66 | 69 |
@XmlElement(name = "AbbreviatedText") |
67 | 70 |
private String abbreviatedText; |
68 | 71 |
|
... | ... | |
105 | 108 |
public Credit clone() throws CloneNotSupportedException{ |
106 | 109 |
|
107 | 110 |
Credit result = (Credit)super.clone(); |
111 |
|
|
112 |
if (this.timePeriod != null) { |
|
113 |
result.timePeriod = this.timePeriod.clone(); |
|
114 |
} |
|
115 |
|
|
108 | 116 |
//no changes to: agent |
109 | 117 |
return result; |
110 | 118 |
} |
Also available in: Unified diff
ref #9908 add timePeriod to Credit