856da5f38bed3fd5d78929b1464fc8fd31369ba3
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
;
13 import eu
.etaxonomy
.cdm
.model
.media
.ReferencedMedia
;
15 import org
.apache
.log4j
.Logger
;
16 import org
.hibernate
.envers
.Audited
;
17 import org
.hibernate
.search
.annotations
.Indexed
;
21 import javax
.persistence
.*;
22 import javax
.xml
.bind
.annotation
.XmlAccessType
;
23 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
24 import javax
.xml
.bind
.annotation
.XmlElement
;
25 import javax
.xml
.bind
.annotation
.XmlElementWrapper
;
26 import javax
.xml
.bind
.annotation
.XmlIDREF
;
27 import javax
.xml
.bind
.annotation
.XmlRootElement
;
28 import javax
.xml
.bind
.annotation
.XmlSchemaType
;
29 import javax
.xml
.bind
.annotation
.XmlType
;
34 * @created 08-Nov-2007 13:06:43
36 @XmlAccessorType(XmlAccessType
.FIELD
)
37 @XmlType(name
= "PhylogeneticTree", propOrder
= {
40 @XmlRootElement(name
= "PhylogeneticTree")
42 @Indexed(index
= "eu.etaxonomy.cdm.model.media.Media")
44 public class PhylogeneticTree
extends ReferencedMedia
{
45 private static final long serialVersionUID
= -7020182117362324067L;
46 private static final Logger logger
= Logger
.getLogger(PhylogeneticTree
.class);
48 @XmlElementWrapper(name
= "UsedSequences")
49 @XmlElement(name
= "UsedSequence")
51 @XmlSchemaType(name
= "IDREF")
52 @OneToMany(fetch
= FetchType
.LAZY
)
53 private Set
<Sequence
> usedSequences
= new HashSet
<Sequence
>();
55 public Set
<Sequence
> getUsedSequences() {
56 logger
.debug("getUsedSequences");
60 public void addUsedSequences(Sequence usedSequence
) {
61 this.usedSequences
.add(usedSequence
);
64 public void removeUsedSequences(Sequence usedSequence
) {
65 this.usedSequences
.remove(usedSequence
);