Project

General

Profile

Download (1.78 KB) Statistics
| Branch: | Tag: | Revision:
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.springframework.beans.factory.annotation.Configurable;
15

    
16
import javax.persistence.*;
17
import javax.xml.bind.annotation.XmlAccessType;
18
import javax.xml.bind.annotation.XmlAccessorType;
19
import javax.xml.bind.annotation.XmlRootElement;
20
import javax.xml.bind.annotation.XmlType;
21

    
22
/**
23
 * @author m.doering
24
 * @version 1.0
25
 * @created 08-Nov-2007 13:06:25
26
 */
27
@XmlAccessorType(XmlAccessType.FIELD)
28
@XmlType(name = "Fossil", propOrder = {
29
})
30
@XmlRootElement(name = "Fossil")
31
@Entity
32
@Audited
33
@Configurable
34
public class Fossil extends Specimen implements Cloneable{
35
	private static final Logger logger = Logger.getLogger(Fossil.class);
36
	
37
	/**
38
	 * Factory method
39
	 * @return
40
	 */
41
	public static Fossil NewInstance(){
42
		return new Fossil();
43
	}
44
	
45
	/**
46
	 * Constructor
47
	 */
48
	protected Fossil() {
49
		super();
50
	}
51
	
52

    
53
//*********** CLONE **********************************/	
54
	
55
	/** 
56
	 * Clones <i>this</i> fossil. This is a shortcut that enables to
57
	 * create a new instance that differs only slightly from <i>this</i> fossil
58
	 * by modifying only some of the attributes.<BR>
59
	 * This method overrides the clone method from {@link Specimen Specimen}.
60
	 * 
61
	 * @see Specimen#clone()
62
	 * @see DerivedUnitBase#clone()
63
	 * @see eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity#clone()
64
	 * @see java.lang.Object#clone()
65
	 */
66
	@Override
67
	public Specimen clone(){
68
		Specimen result = (Specimen)super.clone();
69
		//no changes to: -
70
		return result;
71
	}
72

    
73
}
(9-9/17)