2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.molecular
;
15 import javax
.persistence
.Entity
;
16 import javax
.xml
.bind
.annotation
.XmlAccessType
;
17 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
18 import javax
.xml
.bind
.annotation
.XmlElement
;
19 import javax
.xml
.bind
.annotation
.XmlRootElement
;
20 import javax
.xml
.bind
.annotation
.XmlType
;
22 import org
.apache
.log4j
.Logger
;
23 import org
.hibernate
.annotations
.Type
;
24 import org
.hibernate
.envers
.Audited
;
25 import org
.hibernate
.search
.annotations
.Analyze
;
26 import org
.hibernate
.search
.annotations
.Field
;
28 import eu
.etaxonomy
.cdm
.model
.common
.VersionableEntity
;
33 * @created 08-Nov-2007 13:06:25
35 @XmlAccessorType(XmlAccessType
.FIELD
)
36 @XmlType(name
= "GenBankAccession", propOrder
= {
40 @XmlRootElement(name
= "GenBankAccession")
43 public class GenBankAccession
extends VersionableEntity
{
44 private static final long serialVersionUID
= -8179493118062601585L;
45 private static final Logger logger
= Logger
.getLogger(GenBankAccession
.class);
47 @XmlElement(name
= "AccessionNumber")
48 private String accessionNumber
;
50 @XmlElement(name
= "URI")
51 @Field(analyze
= Analyze
.NO
)
52 @Type(type
="uriUserType")
55 //*********************** FACTORY ****************************************************/
57 public static GenBankAccession
NewInstance(String accessionNumber
){
58 GenBankAccession result
= new GenBankAccession();
59 result
.setAccessionNumber(accessionNumber
);
63 //*********************** CONSTRUCTOR ****************************************************/
65 private GenBankAccession() {
69 //*********************** GETTER / SETTER ****************************************************/
72 public String
getAccessionNumber(){
73 logger
.debug("getAccessionNumber");
74 return this.accessionNumber
;
79 * @param accessionNumber accessionNumber
81 public void setAccessionNumber(String accessionNumber
){
82 this.accessionNumber
= accessionNumber
;
93 public void setUri(URI uri
){