import javax.xml.bind.annotation.XmlSeeAlso;
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.envers.Audited;
import eu.etaxonomy.cdm.common.CdmUtils;
// *********************** CONSTRUCTOR *************************/
- //for JAXB only, TODO needed?
+ //for hibernate use only, protected required by bytebuddy and subclasses outside package
@Deprecated
protected OrderedTermBase(){}
if (this.vocabulary == null || thatTermLocal.vocabulary == null){
throw new IllegalStateException("An ordered term (" + this.toString() + " or " + thatTermLocal.toString() + ") of class " + this.getClass() + " or " + thatTermLocal.getClass() + " does not belong to a vocabulary and therefore can not be compared");
}
- if (! this.getVocabulary().getUuid().equals(thatTermLocal.vocabulary.getUuid())){
- throw new IllegalStateException("2 terms do not belong to the same vocabulary and therefore can not be compared: " + this.getTitleCache() + " and " + thatTermLocal.getTitleCache());
- }
}
int vocCompare = compareVocabularies(thatTermLocal);