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
|
|
15
|
/**
|
16
|
* A specimen is regarded as derived from an field observation,
|
17
|
* so locality and gathering related information is captured as a separate FieldObservation object
|
18
|
* related to a specimen via a derivation event
|
19
|
* @author m.doering
|
20
|
* @version 1.0
|
21
|
* @created 08-Nov-2007 13:06:52
|
22
|
*/
|
23
|
@Entity
|
24
|
public class Specimen extends DerivedUnitBase {
|
25
|
static Logger logger = Logger.getLogger(Specimen.class);
|
26
|
|
27
|
private PreservationMethod preservation;
|
28
|
|
29
|
/**
|
30
|
* Factory method
|
31
|
* @return
|
32
|
*/
|
33
|
public static Specimen NewInstance(){
|
34
|
return new Specimen();
|
35
|
}
|
36
|
|
37
|
/**
|
38
|
* Constructor
|
39
|
*/
|
40
|
protected Specimen() {
|
41
|
super();
|
42
|
}
|
43
|
|
44
|
@ManyToOne
|
45
|
public PreservationMethod getPreservation(){
|
46
|
return this.preservation;
|
47
|
}
|
48
|
public void setPreservation(PreservationMethod preservation){
|
49
|
this.preservation = preservation;
|
50
|
}
|
51
|
|
52
|
}
|