Revision 826c86cb
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/IdentifiableEntity.java | ||
---|---|---|
75 | 75 |
* The originalSource representing that taxon as it was found in IPNI would contain IPNI as the reference, the IPNI id of the taxon and the name of the taxon exactly as it was used in IPNI. |
76 | 76 |
* |
77 | 77 |
* @author m.doering |
78 |
* @version 1.0 |
|
79 | 78 |
* @created 08-Nov-2007 13:06:27 |
80 | 79 |
*/ |
81 | 80 |
@XmlAccessorType(XmlAccessType.FIELD) |
... | ... | |
215 | 214 |
this.titleCache = generateTitle(); |
216 | 215 |
this.titleCache = getTruncatedCache(this.titleCache) ; |
217 | 216 |
} |
218 |
if(StringUtils.isBlank(titleCache)){ |
|
219 |
titleCache = this.toString(); |
|
220 |
} |
|
217 |
//removed due to #5849 |
|
218 |
// if(StringUtils.isBlank(titleCache)){ |
|
219 |
// titleCache = this.toString(); |
|
220 |
// } |
|
221 | 221 |
return titleCache; |
222 | 222 |
} |
223 | 223 |
|
... | ... | |
263 | 263 |
/** |
264 | 264 |
* |
265 | 265 |
* @return true, if the current state of the titleCache (without generating it new) |
266 |
* is the empty string. This is primarily meant for internal use. |
|
266 |
* is <code>null</code> or the empty string. This is primarily meant for internal use.
|
|
267 | 267 |
*/ |
268 | 268 |
public boolean hasEmptyTitleCache(){ |
269 |
return "".equals(this.titleCache); |
|
269 |
return this.titleCache == null || "".equals(this.titleCache);
|
|
270 | 270 |
} |
271 | 271 |
|
272 | 272 |
//************************************************************************************** |
Also available in: Unified diff
Fill empty titleCache only during save and improve classification titleCache generation #5849