* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.cdm.model.common;
import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
-import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import org.hibernate.envers.Audited;
/**
* @author a.mueller
* @since 23.03.2009
- * @version 1.0
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Credit")
@Entity
@Audited
-public class Credit extends LanguageStringBase implements Cloneable{
+public class Credit extends LanguageStringBase {
+
private static final long serialVersionUID = 5763391127298427701L;
@SuppressWarnings("unused")
private static final Logger logger = LogManager.getLogger(Credit.class);
//*********************** GETTER /SETTER *****************************/
- /**
- * @return the agent
- */
public AgentBase getAgent() {
return agent;
}
this.agent = agent;
}
-
- /**
- * @return the abbreviatedText
- */
public String getAbbreviatedText() {
return abbreviatedText;
}
return result;
}
+// ************************ STRING ****************************/
+
@Override
public String toString() {
if (isNotBlank(this.abbreviatedText)){
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.StringUtils;
-import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.hibernate.annotations.Type;
import org.hibernate.search.annotations.Analyze;
import org.hibernate.search.annotations.Field;
* @author m.doering
* @since 08-Nov-2007 13:06:22
*/
-
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalSource", propOrder = {
"type",
*/
public boolean equalsByShallowCompare(OriginalSourceBase other) {
+
int thisCitationId = -1;
int otherCitationId = -1;
if(this.getCitation() != null) {
return false;
}
- OriginalSourceBase theOther = other;
- if(!StringUtils.equals(this.getIdInSource(), theOther.getIdInSource())
- || !CdmUtils.nullSafeEqual(this.getIdNamespace(), theOther.getIdNamespace())
- || !CdmUtils.nullSafeEqual(this.getType(), theOther.getType())
- || TimePeriod.equalsNullAndEmptySafe(accessed, theOther.getAccessed())
- || !CdmUtils.nullSafeEqual(this.getCdmSource(), theOther.getCdmSource())
- || !CdmUtils.nullSafeEqual(this.getLinks(), theOther.getLinks())) {
+ if(!StringUtils.equals(this.getIdInSource(), other.getIdInSource())
+ || !CdmUtils.nullSafeEqual(this.getIdNamespace(), other.getIdNamespace())
+ || !CdmUtils.nullSafeEqual(this.getType(), other.getType())
+ || TimePeriod.equalsNullAndEmptySafe(accessed, other.getAccessed())
+ || !CdmUtils.nullSafeEqual(this.getCdmSource(), other.getCdmSource())
+ || !CdmUtils.nullSafeEqual(this.getLinks(), other.getLinks())) {
return false;
}
UUID uuidEnglish = Language.uuidEnglish;
TermRepresentationUpdater.NewInverseInstance(stepList, stepName, uuidTerm, description, label, abbrev, uuidEnglish);
- //#10057 add accessed columns
- stepName = "Add accessed_start";
+ //#10057 add accessed columns to OriginalSourceBase
+ stepName = "Add accessed_start to OriginalSourceBase";
tableName = "OriginalSourceBase";
String newColumnName = "accessed_start";
int size = 50;
ColumnAdder.NewStringInstance(stepList, stepName, tableName, newColumnName, size, INCLUDE_AUDIT);
- stepName = "Add accessed_end";
+ stepName = "Add accessed_end to OriginalSourceBase";
newColumnName = "accessed_end";
ColumnAdder.NewStringInstance(stepList, stepName, tableName, newColumnName, size, INCLUDE_AUDIT);
- stepName = "Add accessed_freetext";
+ stepName = "Add accessed_freetext to OriginalSourceBase";
newColumnName = "accessed_freetext";
ColumnAdder.NewStringInstance(stepList, stepName, tableName, newColumnName, INCLUDE_AUDIT);