Revision 64367d00
Added by Katja Luther over 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java | ||
---|---|---|
50 | 50 |
import org.hibernate.validator.constraints.NotEmpty; |
51 | 51 |
import org.springframework.util.ReflectionUtils; |
52 | 52 |
|
53 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
|
53 | 54 |
import eu.etaxonomy.cdm.model.common.IParsable; |
54 | 55 |
import eu.etaxonomy.cdm.model.common.IRelated; |
55 | 56 |
import eu.etaxonomy.cdm.model.common.IdentifiableEntity; |
... | ... | |
339 | 340 |
if (protectedFullTitleCache){ |
340 | 341 |
return this.fullTitleCache; |
341 | 342 |
} |
342 |
if (fullTitleCache == null ){
|
|
343 |
// if (fullTitleCache == null ){
|
|
343 | 344 |
this.fullTitleCache = getTruncatedCache(generateFullTitle()); |
344 |
} |
|
345 |
// }
|
|
345 | 346 |
return fullTitleCache; |
346 | 347 |
} |
347 | 348 |
|
... | ... | |
844 | 845 |
if(!INomenclaturalReference.class.isAssignableFrom(nomenclaturalReference.getClass())){ |
845 | 846 |
throw new IllegalArgumentException("Parameter nomenclaturalReference is not assignable from INomenclaturalReference"); |
846 | 847 |
} |
847 |
this.nomenclaturalReference = (Reference)nomenclaturalReference;
|
|
848 |
this.nomenclaturalReference = HibernateProxyHelper.deproxy(nomenclaturalReference, Reference.class);
|
|
848 | 849 |
} else { |
849 | 850 |
this.nomenclaturalReference = null; |
850 | 851 |
} |
Also available in: Unified diff
minor