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 javax.persistence.*;
|
14
|
import javax.xml.bind.annotation.XmlAccessType;
|
15
|
import javax.xml.bind.annotation.XmlAccessorType;
|
16
|
import javax.xml.bind.annotation.XmlRootElement;
|
17
|
import javax.xml.bind.annotation.XmlType;
|
18
|
|
19
|
/**
|
20
|
* @author m.doering
|
21
|
* @version 1.0
|
22
|
* @created 08-Nov-2007 13:06:25
|
23
|
*/
|
24
|
@XmlAccessorType(XmlAccessType.FIELD)
|
25
|
@XmlType(name = "Fossil", propOrder = {
|
26
|
})
|
27
|
@XmlRootElement(name = "Fossil")
|
28
|
@Entity
|
29
|
public class Fossil extends Specimen implements Cloneable{
|
30
|
private static final Logger logger = Logger.getLogger(Fossil.class);
|
31
|
|
32
|
/**
|
33
|
* Factory method
|
34
|
* @return
|
35
|
*/
|
36
|
public static Fossil NewInstance(){
|
37
|
return new Fossil();
|
38
|
}
|
39
|
|
40
|
/**
|
41
|
* Constructor
|
42
|
*/
|
43
|
protected Fossil() {
|
44
|
super();
|
45
|
}
|
46
|
|
47
|
|
48
|
//*********** CLONE **********************************/
|
49
|
|
50
|
/**
|
51
|
* Clones <i>this</i> fossil. This is a shortcut that enables to
|
52
|
* create a new instance that differs only slightly from <i>this</i> fossil
|
53
|
* by modifying only some of the attributes.<BR>
|
54
|
* This method overrides the clone method from {@link Specimen Specimen}.
|
55
|
*
|
56
|
* @see Specimen#clone()
|
57
|
* @see DerivedUnitBase#clone()
|
58
|
* @see eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity#clone()
|
59
|
* @see java.lang.Object#clone()
|
60
|
*/
|
61
|
@Override
|
62
|
public Specimen clone(){
|
63
|
Specimen result = (Specimen)super.clone();
|
64
|
//no changes to: -
|
65
|
return result;
|
66
|
}
|
67
|
|
68
|
}
|