@XmlRootElement(name = "AbsenceTerm")
@Entity
public class AbsenceTerm extends PresenceAbsenceTermBase<AbsenceTerm> {
+ private static final long serialVersionUID = -7145360212307512860L;
private static final Logger logger = Logger.getLogger(AbsenceTerm.class);
/**
* @see #NewInstance(String, String, String)
*/
public static AbsenceTerm NewInstance(){
+ logger.debug("NewInstance");
return new AbsenceTerm();
}
package eu.etaxonomy.cdm.model.description;
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
+import java.util.ArrayList;
+import java.util.List;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.LanguageString;
-
-import java.util.*;
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.ManyToMany;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
+
/**
* This class represents information pieces expressed in categorical type of
* data (in opposition to {@link QuantitativeData quantitative data} on one side and to literal data on
@XmlRootElement(name = "CategoricalData")
@Entity
public class CategoricalData extends DescriptionElementBase {
-
- static Logger logger = Logger.getLogger(CategoricalData.class);
+ private static final long serialVersionUID = -6298361966947668998L;
+ private static final Logger logger = Logger.getLogger(CategoricalData.class);
//whether the sequence of ordered states is important
@XmlElement(name = "OrderRelevant")
@XmlElement(name = "State")
@XmlIDREF
@XmlSchemaType(name = "IDREF")
- private List<StateData> states = new ArrayList();
+ private List<StateData> states = new ArrayList<StateData>();
/**
* Creates a new empty categorical data instance.
*/
public static CategoricalData NewInstance(){
+ logger.debug("NewInstance");
return new CategoricalData();
}
/**
* @see #getStates()
*/
+ @SuppressWarnings("unused")
private void setStates(List<StateData> states){
this.states = states;
}
import eu.etaxonomy.cdm.model.common.Language;
import eu.etaxonomy.cdm.model.common.MultilanguageText;
-import eu.etaxonomy.cdm.model.location.NamedArea;
import eu.etaxonomy.cdm.model.taxon.Taxon;
/**
@XmlRootElement(name = "CommonTaxonName")
@Entity
public class CommonTaxonName extends DescriptionElementBase {
-
- static Logger logger = Logger.getLogger(CommonTaxonName.class);
+ private static final long serialVersionUID = 2643808051976643339L;
+ private static final Logger logger = Logger.getLogger(CommonTaxonName.class);
@XmlElement(name = "Name")
private String name;
* @param language the language of the name string
*/
public static CommonTaxonName NewInstance(String name, Language language){
+ logger.debug("NewInstance");
CommonTaxonName result = new CommonTaxonName();
result.setName(name);
result.setLanguage(language);
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToMany;
-
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
-import eu.etaxonomy.cdm.model.agent.Institution;
-import eu.etaxonomy.cdm.model.agent.Person;
-import eu.etaxonomy.cdm.model.agent.Team;
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
-import eu.etaxonomy.cdm.model.reference.BibtexReference;
import eu.etaxonomy.cdm.model.reference.ReferenceBase;
-import eu.etaxonomy.cdm.model.reference.StrictReferenceBase;
-import eu.etaxonomy.cdm.model.taxon.Synonym;
-import eu.etaxonomy.cdm.model.taxon.SynonymRelationship;
-import eu.etaxonomy.cdm.model.taxon.SynonymRelationshipType;
import eu.etaxonomy.cdm.model.taxon.Taxon;
/**
})
@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
-public abstract class DescriptionBase extends IdentifiableEntity {
-
+public abstract class DescriptionBase extends IdentifiableEntity<DescriptionBase> {
+ private static final long serialVersionUID = 5504218413819040193L;
private static final Logger logger = Logger.getLogger(DescriptionBase.class);
@XmlElementWrapper(name = "DescribedSpecimenOrObservations")
* @see SpecimenOrObservationBase#addDescription(DescriptionBase)
*/
public void addDescribedSpecimenOrObservations(SpecimenOrObservationBase describedSpecimenOrObservation) {
+ logger.debug("addDescribedSpecimenOrObservations");
this.describedSpecimenOrObservations.add(describedSpecimenOrObservation);
}
@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public abstract class DescriptionElementBase extends ReferencedEntityBase implements IMediaEntity{
+ private static final long serialVersionUID = 5000910777835755905L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(DescriptionElementBase.class);
package eu.etaxonomy.cdm.model.description;
-import java.awt.Color;
-import java.awt.color.ColorSpace;
-import java.text.DecimalFormat;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.UUID;
-
-import eu.etaxonomy.cdm.common.CdmUtils;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.Representation;
-import eu.etaxonomy.cdm.model.location.NamedArea;
-import eu.etaxonomy.cdm.model.location.NamedAreaLevel;
-import eu.etaxonomy.cdm.model.taxon.Taxon;
-
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
+
+import eu.etaxonomy.cdm.model.location.NamedArea;
+import eu.etaxonomy.cdm.model.taxon.Taxon;
+
/**
* This class represents elementary distribution data for a {@link Taxon taxon}.
* Only {@link TaxonDescription taxon descriptions} may contain distributions.
@XmlRootElement(name = "Distribution")
@Entity
public class Distribution extends DescriptionElementBase {
- static Logger logger = Logger.getLogger(Distribution.class);
+ private static final long serialVersionUID = 8366462435651559730L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(Distribution.class);
@XmlElement(name = "NamedArea")
@XmlIDREF
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
-import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
import eu.etaxonomy.cdm.model.common.ILoadableTerm;
import eu.etaxonomy.cdm.model.common.Language;
import eu.etaxonomy.cdm.model.common.TermVocabulary;
import eu.etaxonomy.cdm.model.name.BotanicalName;
-import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
import eu.etaxonomy.cdm.model.name.HybridRelationshipType;
-import eu.etaxonomy.cdm.model.name.NameRelationship;
-import eu.etaxonomy.cdm.model.name.NameRelationshipType;
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
-import eu.etaxonomy.cdm.model.name.NonViralName;
-import eu.etaxonomy.cdm.model.name.Rank;
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
import eu.etaxonomy.cdm.model.occurrence.Specimen;
import eu.etaxonomy.cdm.model.taxon.Taxon;
})
@XmlRootElement(name = "Feature")
@Entity
-public class Feature extends DefinedTermBase {
- static Logger logger = Logger.getLogger(Feature.class);
+public class Feature extends DefinedTermBase<Feature> {
+ private static final long serialVersionUID = 6754598791831848704L;
+ private static final Logger logger = Logger.getLogger(Feature.class);
@XmlElement(name = "SupportsTextData")
private boolean supportsTextData;
* @version 1.0
* @created 08-Nov-2007 13:06:16
*/
+@SuppressWarnings("serial")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FeatureNode", propOrder = {
"feature",
})
@XmlRootElement(name = "FeatureNode")
@Entity
-public class FeatureNode extends VersionableEntity {
- static Logger logger = Logger.getLogger(FeatureNode.class);
+public class FeatureNode extends VersionableEntity<FeatureNode> {
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(FeatureNode.class);
@XmlElement(name = "Feature")
@XmlIDREF
@XmlRootElement(name = "FeatureTree")
@Entity
public class FeatureTree extends TermBase {
- static Logger logger = Logger.getLogger(FeatureTree.class);
+ /**
+ *
+ */
+ private static final long serialVersionUID = -6713834139003172735L;
+
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(FeatureTree.class);
//private Set<FeatureNode> nodes = new HashSet<FeatureNode>();
@XmlElement(name = "Root")
@XmlRootElement(name = "IdentificationKey")
@Entity
public class IdentificationKey extends Media {
-
- static Logger logger = Logger.getLogger(IdentificationKey.class);
+ private static final long serialVersionUID = -29095811051894471L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(IdentificationKey.class);
@XmlElementWrapper(name = "CoveredTaxa")
@XmlElement(name = "CoveredTaxon")
@XmlIDREF
@XmlSchemaType(name = "IDREF")
- private Set<Taxon> coveredTaxa = new HashSet();
+ private Set<Taxon> coveredTaxa = new HashSet<Taxon>();
/**
* Class constructor: creates a new empty identification key instance.
package eu.etaxonomy.cdm.model.description;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.LanguageString;
-import eu.etaxonomy.cdm.model.common.MultilanguageText;
-import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
-import eu.etaxonomy.cdm.model.taxon.Taxon;
-
-import org.apache.log4j.Logger;
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.model.common.Language;
+import eu.etaxonomy.cdm.model.common.LanguageString;
+import eu.etaxonomy.cdm.model.common.MultilanguageText;
+import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
+
/**
* This class represents associations between the described
* {@link SpecimenOrObservationBase specimen or observation}
@XmlRootElement(name = "IndividualsAssociation")
@Entity
public class IndividualsAssociation extends DescriptionElementBase {
-
- static Logger logger = Logger.getLogger(IndividualsAssociation.class);
+ private static final long serialVersionUID = -4117554860254531809L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(IndividualsAssociation.class);
@XmlElement(name = "Description")
private MultilanguageText description;
@XmlType(name = "MeasurementUnit")
@XmlRootElement(name = "MeasurementUnit")
@Entity
-public class MeasurementUnit extends DefinedTermBase {
- static Logger logger = Logger.getLogger(MeasurementUnit.class);
+public class MeasurementUnit extends DefinedTermBase<MeasurementUnit> {
+ private static final long serialVersionUID = 4904519152652248312L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(MeasurementUnit.class);
/**
* Class constructor: creates a new empty measurement unit instance.
@XmlRootElement(name = "Modifier")
@Entity
public class Modifier extends OrderedTermBase<Modifier> {
- static Logger logger = Logger.getLogger(Modifier.class);
+ private static final long serialVersionUID = -2491833848163461951L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(Modifier.class);
/**
* Class constructor: creates a new empty modifier instance.
import java.util.Map;
import java.util.UUID;
+import javax.persistence.Entity;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.log4j.Logger;
+
import eu.etaxonomy.cdm.common.CdmUtils;
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
import eu.etaxonomy.cdm.model.common.ILoadableTerm;
import eu.etaxonomy.cdm.model.common.Language;
import eu.etaxonomy.cdm.model.common.OrderedTermBase;
-import eu.etaxonomy.cdm.model.common.Representation;
import eu.etaxonomy.cdm.model.location.NamedArea;
import eu.etaxonomy.cdm.model.taxon.Taxon;
-import org.apache.log4j.Logger;
-import javax.persistence.*;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
/**
* This (abstract) class represents terms describing the {@link AbsenceTerm absence}
* (like "extinct") or the {@link PresenceTerm presence} (like "cultivated") of a {@link Taxon taxon}
@XmlRootElement(name = "PresenceAbsenceTermBase")
@Entity
public abstract class PresenceAbsenceTermBase<T extends PresenceAbsenceTermBase> extends OrderedTermBase<PresenceAbsenceTermBase> {
+ private static final long serialVersionUID = 1596291470042068880L;
private static final Logger logger = Logger.getLogger(PresenceAbsenceTermBase.class);
private static Map<String, UUID> map = new HashMap<String, UUID>();
package eu.etaxonomy.cdm.model.description;
-import java.util.HashMap;
-import java.util.Map;
import java.util.UUID;
+import javax.persistence.Entity;
+import javax.persistence.Transient;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
import org.apache.log4j.Logger;
-import eu.etaxonomy.cdm.common.CdmUtils;
-import eu.etaxonomy.cdm.model.common.DefinedTermBase;
import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.location.Continent;
import eu.etaxonomy.cdm.model.location.NamedArea;
-import eu.etaxonomy.cdm.model.name.Rank;
import eu.etaxonomy.cdm.model.taxon.Taxon;
-import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException;
-
-import javax.persistence.*;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
/**
* This class represents terms describing different types of presence
@XmlRootElement(name = "PresenceTerm")
@Entity
public class PresenceTerm extends PresenceAbsenceTermBase<PresenceTerm> {
+ private static final long serialVersionUID = -2876981902335193596L;
private static final Logger logger = Logger.getLogger(PresenceTerm.class);
//********* METHODS **************************************/
package eu.etaxonomy.cdm.model.description;
+import java.util.HashSet;
+import java.util.Set;
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
-
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.LanguageString;
-
-import java.util.*;
-
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToMany;
+import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
+
/**
* This class represents information pieces expressed in numerical data
* (in opposition to {@link CategoricalData categorical data} on one side and to literal data on
@XmlRootElement(name = "QuantitativeData")
@Entity
public class QuantitativeData extends DescriptionElementBase {
-
- static Logger logger = Logger.getLogger(QuantitativeData.class);
+ private static final long serialVersionUID = -2755806455420051488L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(QuantitativeData.class);
@XmlElement(name = "MeasurementUnit")
@XmlIDREF
@XmlElement(name = "StatisticalValue")
@XmlIDREF
@XmlSchemaType(name = "IDREF")
- private Set<StatisticalMeasurementValue> statisticalValues = new HashSet();
+ private Set<StatisticalMeasurementValue> statisticalValues = new HashSet<StatisticalMeasurementValue>();
/**
* Class constructor: creates a new empty quantitative data instance.
package eu.etaxonomy.cdm.model.description;
-import org.apache.log4j.Logger;
-
-import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
-import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
-import eu.etaxonomy.cdm.model.name.Rank;
-import eu.etaxonomy.cdm.model.name.TaxonNameBase;
-import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;
-
-import javax.persistence.*;
+import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.model.common.Language;
+
/**
* The class representing restrictions for the validity of
* {@link TaxonDescription taxon descriptions}. This could include not only {@link Stage life stage}
@XmlRootElement(name = "Scope")
@Entity
public class Scope extends Modifier {
+ private static final long serialVersionUID = 4479960075363470677L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(Scope.class);
// ************* CONSTRUCTORS *************/
@XmlRootElement(name = "Sex")
@Entity
public class Sex extends Scope {
+ private static final long serialVersionUID = 3463642992193419657L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(Sex.class);
private static final UUID uuidMale = UUID.fromString("600a5212-cc02-431d-8a80-2bf595bd1eab");
import org.apache.log4j.Logger;
-import eu.etaxonomy.cdm.model.name.TaxonNameBase;
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
/**
@XmlRootElement(name = "SpecimenDescription")
@Entity
public class SpecimenDescription extends DescriptionBase {
- static Logger logger = Logger.getLogger(SpecimenDescription.class);
+ private static final long serialVersionUID = -8506790426682192703L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(SpecimenDescription.class);
/**
@XmlRootElement(name = "Stage")
@Entity
public class Stage extends Scope {
+ private static final long serialVersionUID = 2338810516765894760L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(Stage.class);
// ************* CONSTRUCTORS *************/
package eu.etaxonomy.cdm.model.description;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.OrderedTermBase;
-import eu.etaxonomy.cdm.model.location.NamedArea;
-import eu.etaxonomy.cdm.model.taxon.Taxon;
-
-import org.apache.log4j.Logger;
-
-import javax.persistence.*;
+import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.model.common.Language;
+import eu.etaxonomy.cdm.model.common.OrderedTermBase;
+
/**
* This class represents terms describing different states (like "oval" or
* "triangular") for {@link Feature features} that can be described with
@XmlRootElement(name = "State")
@Entity
public class State extends OrderedTermBase<State> {
- static Logger logger = Logger.getLogger(State.class);
+ private static final long serialVersionUID = -4816292463790262516L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(State.class);
// ************* CONSTRUCTORS *************/
/**
})
@XmlRootElement(name = "StateData")
@Entity
-public class StateData extends VersionableEntity {
-
+public class StateData extends VersionableEntity<StateData> {
+ private static final long serialVersionUID = -4380314126624505415L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(StateData.class);
@XmlElement(name = "State")
/**
* @see #getModifiers()
*/
+ @SuppressWarnings("unused")
private void setModifiers(Set<Modifier> modifiers) {
this.modifiers = modifiers;
}
/**
* @see #getModifyingText()
*/
+ @SuppressWarnings("unused")
private void setModifyingText(MultilanguageText modifyingText) {
this.modifyingText = modifyingText;
}
import java.util.UUID;
-import eu.etaxonomy.cdm.model.common.DefinedTermBase;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.MarkerType;
-
-import org.apache.log4j.Logger;
-import javax.persistence.*;
+import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.model.common.DefinedTermBase;
+import eu.etaxonomy.cdm.model.common.Language;
+
/**
/**
* This class represents terms describing different statistical measures (such
@XmlType(name = "StatisticalMeasure")
@XmlRootElement(name = "StatisticalMeasure")
@Entity
-public class StatisticalMeasure extends DefinedTermBase {
-
+public class StatisticalMeasure extends DefinedTermBase<StatisticalMeasure> {
+ private static final long serialVersionUID = 9168097283660941430L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(StatisticalMeasure.class);
private static final UUID uuidMin = UUID.fromString("2c8b42e5-154c-42bd-a301-03b483275dd6");
package eu.etaxonomy.cdm.model.description;
-import eu.etaxonomy.cdm.model.common.VersionableEntity;
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
+import java.util.HashSet;
+import java.util.Set;
-import java.util.*;
-
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToMany;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.model.common.VersionableEntity;
+
/**
* This class represents the assignment of numerical values to {@link Feature features}
* corresponding to {@link QuantitativeData quantitative data}. A statistical measurement
@XmlType(name = "StatisticalMeasureValue")
@XmlRootElement(name = "StatisticalMeasureValue")
@Entity
-public class StatisticalMeasurementValue extends VersionableEntity {
-
- static Logger logger = Logger.getLogger(StatisticalMeasurementValue.class);
+public class StatisticalMeasurementValue extends VersionableEntity<StatisticalMeasurementValue> {
+ private static final long serialVersionUID = -3576311887760351982L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(StatisticalMeasurementValue.class);
@XmlElement(name = "Value")
private float value;
@XmlElement(name = "Modifier")
@XmlIDREF
@XmlSchemaType(name = "IDREF")
- private Set<Modifier> modifiers = new HashSet();
+ private Set<Modifier> modifiers = new HashSet<Modifier>();
@XmlElement(name = "StatisticalMeasureType")
@XmlIDREF
package eu.etaxonomy.cdm.model.description;
-import eu.etaxonomy.cdm.model.location.NamedArea;
-import eu.etaxonomy.cdm.model.name.TaxonNameBase;
-import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
-import eu.etaxonomy.cdm.model.taxon.Taxon;
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
-
-import java.util.*;
+import java.util.HashSet;
+import java.util.Set;
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.JoinColumn;
+import javax.persistence.JoinTable;
+import javax.persistence.ManyToOne;
+import javax.persistence.OneToMany;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
+
+import eu.etaxonomy.cdm.model.location.NamedArea;
+import eu.etaxonomy.cdm.model.taxon.Taxon;
+
/**
* This class represents descriptions that delimit or circumscribe a real taxon.
* <P>
@XmlRootElement(name = "TaxonDescription")
@Entity
public class TaxonDescription extends DescriptionBase {
-
- static Logger logger = Logger.getLogger(TaxonDescription.class);
+ private static final long serialVersionUID = 8065879180505546803L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(TaxonDescription.class);
@XmlElementWrapper(name = "Scopes")
@XmlElement(name = "Scope")
import eu.etaxonomy.cdm.model.common.Language;
import eu.etaxonomy.cdm.model.common.LanguageString;
import eu.etaxonomy.cdm.model.common.MultilanguageText;
-import eu.etaxonomy.cdm.model.common.TermVocabulary;
-import eu.etaxonomy.cdm.model.location.NamedArea;
import eu.etaxonomy.cdm.model.taxon.Taxon;
// FIXME
@XmlRootElement(name = "TaxonInteraction")
@Entity
public class TaxonInteraction extends DescriptionElementBase {
-
+ private static final long serialVersionUID = -5014025677925668627L;
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(TaxonInteraction.class);
@XmlElement(name = "Description")
/**
* @see #getDescription()
*/
+ @SuppressWarnings("unused")
private void setDescription(MultilanguageText description){
this.description = description;
}
@XmlRootElement(name = "TaxonNameDescription")
@Entity
public class TaxonNameDescription extends DescriptionBase {
- static Logger logger = Logger.getLogger(TaxonNameDescription.class);
+ private static final long serialVersionUID = -7349160369642038687L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(TaxonNameDescription.class);
@XmlTransient
- private TaxonNameBase taxonName;
+ private TaxonNameBase<?,?> taxonName;
/**
package eu.etaxonomy.cdm.model.description;
-
-import java.util.HashMap;
import java.util.Map;
-import eu.etaxonomy.cdm.jaxb.MultilanguageTextAdapter;
-import eu.etaxonomy.cdm.model.common.Language;
-import eu.etaxonomy.cdm.model.common.LanguageString;
-import eu.etaxonomy.cdm.model.common.MultilanguageText;
-import eu.etaxonomy.cdm.model.taxon.Taxon;
-
-import org.apache.log4j.Logger;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
-import javax.persistence.*;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.ManyToOne;
+import javax.persistence.MapKey;
+import javax.persistence.OneToMany;
+import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import org.apache.log4j.Logger;
+import org.hibernate.annotations.Cascade;
+import org.hibernate.annotations.CascadeType;
+
+import eu.etaxonomy.cdm.jaxb.MultilanguageTextAdapter;
+import eu.etaxonomy.cdm.model.common.Language;
+import eu.etaxonomy.cdm.model.common.LanguageString;
+import eu.etaxonomy.cdm.model.common.MultilanguageText;
+
/**
* This class represents information pieces expressed in one or several natural
* languages (for the {@link Feature feature} "medical use" for instance).
@XmlRootElement(name = "TextData")
@Entity
public class TextData extends DescriptionElementBase {
-
- static Logger logger = Logger.getLogger(TextData.class);
+ private static final long serialVersionUID = -2165015581278282615L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(TextData.class);
//@XmlElement(name = "MultiLanguageText", type = MultilanguageText.class)
@XmlElement(name = "MultiLanguageText")
package eu.etaxonomy.cdm.model.description;
-import eu.etaxonomy.cdm.model.common.DefinedTermBase;
-import eu.etaxonomy.cdm.model.name.NameRelationship;
-import eu.etaxonomy.cdm.model.name.TaxonNameBase;
-
-
-import org.apache.log4j.Logger;
-import javax.persistence.*;
+import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.model.common.DefinedTermBase;
+
/**
* The class representing kinds of formats used for structuring text
* (like "xml schema namespace", "rdf", or any other format).
@XmlType(name = "TextFormat")
@XmlRootElement(name = "TextFormat")
@Entity
-public class TextFormat extends DefinedTermBase {
- static Logger logger = Logger.getLogger(TextFormat.class);
+public class TextFormat extends DefinedTermBase<TextFormat> {
+ private static final long serialVersionUID = 2063382669537212917L;
+ @SuppressWarnings("unused")
+ private static final Logger logger = Logger.getLogger(TextFormat.class);
// ************* CONSTRUCTORS *************/
/**