root/trunk/cdmlib/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/occurrence/Fossil.java

Revision 6556, 1.9 kB (checked in by ben.clark, 3 years ago)

Added annotations to support free-text searching of occurrences & related entities

  • Property svn:keywords set to Id
Line 
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
10package eu.etaxonomy.cdm.model.occurrence;
11
12import org.apache.log4j.Logger;
13import org.hibernate.envers.Audited;
14import org.hibernate.search.annotations.Indexed;
15import org.springframework.beans.factory.annotation.Configurable;
16
17import javax.persistence.*;
18import javax.xml.bind.annotation.XmlAccessType;
19import javax.xml.bind.annotation.XmlAccessorType;
20import javax.xml.bind.annotation.XmlRootElement;
21import 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
36public 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}
Note: See TracBrowser for help on using the browser.