(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / agent / InstitutionType.java
index 9c7968c7e273b541519eaecd12d0571e8d74a4d8..e49b994fc30d9aeaaff44725b094be04348c1ecc 100644 (file)
@@ -12,6 +12,9 @@ package eu.etaxonomy.cdm.model.agent;
 import eu.etaxonomy.cdm.model.common.DefinedTermBase;
 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.XmlType;
 
 /**
  * Represents an element of a controlled {@link common.TermVocabulary vocabulary} for different kinds of institutions.
@@ -24,6 +27,8 @@ import javax.persistence.*;
  * @version 1.0
  * @created 08-Nov-2007 13:06:30
  */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "InstitutionType")
 @Entity
 public class InstitutionType extends DefinedTermBase {
        static Logger logger = Logger.getLogger(InstitutionType.class);
@@ -41,15 +46,15 @@ public class InstitutionType extends DefinedTermBase {
        /** 
         * Class constructor using both term and label strings.
         *
-        * @param  term   the string describing this vocabulary element
+        * @param  term   the string describing <i>this</i> vocabulary element
         *                                in the default language
-        * @param  label  the string which identifies this vocabulary element
+        * @param  label  the string which identifies <i>this</i> vocabulary element
         *                                irrespective of the language
         * @see           common.Representation
         * @see           common.TermBase#TermBase(String, String)
         */
-       public InstitutionType(String term, String label) {
-               super(term, label);
+       public InstitutionType(String term, String label, String labelAbbrev) {
+               super(term, label, labelAbbrev);
                // TODO Auto-generated constructor stub
        }