root/trunk/cdmlib/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/molecular/Locus.java

Revision 5476, 1.6 kB (checked in by a.kohlbecker, 3 years ago)

svn keyword property "Id" added

  • Property svn:keywords set to Id
Line 
1/**
2* Copyright (C) 2007 EDIT
3* European Distributed Institute of Taxonomy
4* http://www.e-taxonomy.eu
5*
6* The contents of this file are subject to the Mozilla Public License Version 1.1
7* See LICENSE.TXT at the top of this package for the full license terms.
8*/
9
10package eu.etaxonomy.cdm.model.molecular;
11
12
13import eu.etaxonomy.cdm.model.common.VersionableEntity;
14import org.apache.log4j.Logger;
15import org.hibernate.envers.Audited;
16
17import javax.persistence.*;
18import javax.xml.bind.annotation.XmlAccessType;
19import javax.xml.bind.annotation.XmlAccessorType;
20import javax.xml.bind.annotation.XmlElement;
21import javax.xml.bind.annotation.XmlRootElement;
22import javax.xml.bind.annotation.XmlType;
23
24/**
25 * The region name of a DNA string. E.g. 18S, COX, etc.
26 * @author m.doering
27 * @version 1.0
28 * @created 08-Nov-2007 13:06:32
29 */
30@XmlAccessorType(XmlAccessType.FIELD)
31@XmlType(name = "Locus", propOrder = {
32    "name",
33    "description"
34})
35@XmlRootElement(name = "Locus")
36@Entity
37@Audited
38public class Locus extends VersionableEntity {
39        private static final long serialVersionUID = 3907156009866200988L;
40        private static final Logger logger = Logger.getLogger(Locus.class);
41       
42        @XmlElement(name = "Name")
43        private String name;
44       
45        @XmlElement(name = "Description")
46        private String description;
47       
48        public String getName(){
49                logger.debug("getName");
50                return this.name;
51        }
52
53        /**
54         *
55         * @param name    name
56         */
57        public void setName(String name){
58                this.name = name;
59        }
60
61        public String getDescription(){
62                return this.description;
63        }
64
65        /**
66         *
67         * @param description    description
68         */
69        public void setDescription(String description){
70                this.description = description;
71        }
72
73}
Note: See TracBrowser for help on using the browser.