Revision 479c80d3
Added by Andreas Müller almost 9 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/TermBase.java | ||
---|---|---|
123 | 123 |
} |
124 | 124 |
|
125 | 125 |
public void addRepresentation(Representation representation) { |
126 |
this.representations.add(representation); |
|
127 |
//reset titleCache
|
|
128 |
this.titleCache = null; |
|
126 |
// this.representations.add(representation);
|
|
127 |
this.addToSetWithChangeEvent(this.representations, representation, "representations");
|
|
128 |
|
|
129 | 129 |
} |
130 | 130 |
|
131 | 131 |
public void removeRepresentation(Representation representation) { |
132 |
this.representations.remove(representation); |
|
133 |
//reset titlecache |
|
134 |
this.titleCache = null; |
|
132 |
// this.representations.remove(representation); |
|
133 |
this.removeFromSetWithChangeEvent(this.representations, representation, "representations"); |
|
135 | 134 |
} |
136 | 135 |
|
137 | 136 |
public Representation getRepresentation(Language lang) { |
Also available in: Unified diff
improve handling of titlecache in terms #3148