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
.occurrence
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.hibernate
.envers
.Audited
;
14 import org
.hibernate
.search
.annotations
.Indexed
;
15 import org
.springframework
.beans
.factory
.annotation
.Configurable
;
17 import javax
.persistence
.*;
18 import javax
.xml
.bind
.annotation
.XmlAccessType
;
19 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
20 import javax
.xml
.bind
.annotation
.XmlRootElement
;
21 import javax
.xml
.bind
.annotation
.XmlType
;
26 * @created 08-Nov-2007 13:06:25
28 @XmlAccessorType(XmlAccessType
.FIELD
)
29 @XmlType(name
= "Fossil", propOrder
= {
31 @XmlRootElement(name
= "Fossil")
33 @Indexed(index
= "eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase")
36 public class Fossil
extends Specimen
implements Cloneable
{
37 private static final Logger logger
= Logger
.getLogger(Fossil
.class);
43 public static Fossil
NewInstance(){
55 //*********** CLONE **********************************/
58 * Clones <i>this</i> fossil. This is a shortcut that enables to
59 * create a new instance that differs only slightly from <i>this</i> fossil
60 * by modifying only some of the attributes.<BR>
61 * This method overrides the clone method from {@link Specimen Specimen}.
63 * @see Specimen#clone()
64 * @see DerivedUnitBase#clone()
65 * @see eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity#clone()
66 * @see java.lang.Object#clone()
69 public Specimen
clone(){
70 Specimen result
= (Specimen
)super.clone();