removed abstract method getGatheringEvent which was not implemented in DerivedUnitBase
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / occurrence / Fossil.java
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.occurrence;
11
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;
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.XmlRootElement;
21 import javax.xml.bind.annotation.XmlType;
22
23 /**
24 * @author m.doering
25 * @version 1.0
26 * @created 08-Nov-2007 13:06:25
27 */
28 @XmlAccessorType(XmlAccessType.FIELD)
29 @XmlType(name = "Fossil", propOrder = {
30 })
31 @XmlRootElement(name = "Fossil")
32 @Entity
33 @Indexed(index = "eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase")
34 @Audited
35 @Configurable
36 public class Fossil extends Specimen implements Cloneable{
37 private static final Logger logger = Logger.getLogger(Fossil.class);
38
39 /**
40 * Factory method
41 * @return
42 */
43 public static Fossil NewInstance(){
44 return new Fossil();
45 }
46
47 /**
48 * Constructor
49 */
50 protected Fossil() {
51 super();
52 }
53
54
55 //*********** CLONE **********************************/
56
57 /**
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}.
62 *
63 * @see Specimen#clone()
64 * @see DerivedUnitBase#clone()
65 * @see eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity#clone()
66 * @see java.lang.Object#clone()
67 */
68 @Override
69 public Specimen clone(){
70 Specimen result = (Specimen)super.clone();
71 //no changes to: -
72 return result;
73 }
74
75 }