| 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 | |
|---|
| 10 | package eu.etaxonomy.cdm.model.molecular; |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | import eu.etaxonomy.cdm.model.common.VersionableEntity; |
|---|
| 14 | import org.apache.log4j.Logger; |
|---|
| 15 | import org.hibernate.envers.Audited; |
|---|
| 16 | |
|---|
| 17 | import javax.persistence.*; |
|---|
| 18 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 19 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 20 | import javax.xml.bind.annotation.XmlElement; |
|---|
| 21 | import javax.xml.bind.annotation.XmlRootElement; |
|---|
| 22 | import 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 |
|---|
| 38 | public 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 | } |
|---|