more Matching and bugfix in IdentifiableEntity.clone()
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / agent / InstitutionType.java
index 5837807c7bf93512e3f2ee94685dbfe450823aa3..cefac051a20da333c5d073a0830944d2f37d7f8e 100644 (file)
@@ -9,14 +9,17 @@
 
 package eu.etaxonomy.cdm.model.agent;
 
-import eu.etaxonomy.cdm.model.common.DefinedTermBase;
-
-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.XmlType;
 
+import org.apache.log4j.Logger;
+import org.hibernate.envers.Audited;
+
+import eu.etaxonomy.cdm.model.common.DefinedTermBase;
+import eu.etaxonomy.cdm.model.common.TermVocabulary;
+
 /**
  * Represents an element of a controlled {@link eu.etaxonomy.cdm.model.common.TermVocabulary vocabulary} for different kinds of institutions.
  * Each {@link DefinedTermBase element} belongs to one vocabulary.
@@ -30,8 +33,10 @@ import javax.xml.bind.annotation.XmlType;
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "InstitutionType")
 @Entity
-public class InstitutionType extends DefinedTermBase {
-       static Logger logger = Logger.getLogger(InstitutionType.class);
+@Audited
+public class InstitutionType extends DefinedTermBase<InstitutionType> {
+       private static final long serialVersionUID = 8714866112728127219L;
+       public static final Logger logger = Logger.getLogger(InstitutionType.class);
 
        // ************* CONSTRUCTORS *************/    
        /** 
@@ -61,5 +66,11 @@ public class InstitutionType extends DefinedTermBase {
                // TODO Auto-generated constructor stub
        }
 
+       @Override
+       protected void setDefaultTerms(TermVocabulary<InstitutionType> termVocabulary) {
+               // TODO Auto-generated method stub
+               
+       }
+
        
 }
\ No newline at end of file