return titleCache;
}
public void setTitleCache(String titleCache){
+ //TODO truncation of title cach
+ if (titleCache != null && titleCache.length() > 254){
+ logger.warn("Truncation of title cache: " + this.toString());
+ titleCache = titleCache.substring(0, 252) + "...";
+ }
this.titleCache = titleCache;
this.setProtectedTitleCache(PROTECTED);
}
/**
* Factory method
- * @param text
- * @param lang
+ * @param markerType The type of the marker
+ * @param flag The value of the marker
* @return
*/
public static Marker NewInstance(MarkerType markerType, boolean flag){
package eu.etaxonomy.cdm.model.reference;
-
import org.apache.log4j.Logger;
-
import javax.persistence.*;
/**
import eu.etaxonomy.cdm.model.agent.Agent;
-import eu.etaxonomy.cdm.model.agent.Team;
-import eu.etaxonomy.cdm.model.common.IMediaDocumented;
-import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
import eu.etaxonomy.cdm.model.common.IdentifyableMediaEntity;
-import eu.etaxonomy.cdm.model.common.Media;
import org.apache.log4j.Logger;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
-
-import java.util.*;
-
import javax.persistence.*;
/**