Opportunity to omit term loading during DB initialization.
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / occurrence / PreservationMethod.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 eu.etaxonomy.cdm.model.common.DefinedTermBase;
13 import org.apache.log4j.Logger;
14 import javax.persistence.*;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlRootElement;
18
19 /**
20 * http://rs.tdwg.org/ontology/voc/Collection.rdf#SpecimenPreservationMethodTypeTerm
21 * @author m.doering
22 * @version 1.0
23 * @created 08-Nov-2007 13:06:44
24 */
25 @XmlAccessorType(XmlAccessType.FIELD)
26 @XmlRootElement(name = "PreservationMethod")
27 @Entity
28 public class PreservationMethod extends DefinedTermBase {
29 static Logger logger = Logger.getLogger(PreservationMethod.class);
30
31 /**
32 * Factory method
33 * @return
34 */
35 public static PreservationMethod NewInstance(){
36 return new PreservationMethod();
37 }
38
39 /**
40 * Constructor
41 */
42 private PreservationMethod() {
43 super();
44 }
45
46 /**
47 * Factory method
48 * @return
49 */
50 public static PreservationMethod NewInstance(String term, String label, String labelAbbrev) {
51 return new PreservationMethod(term, label, labelAbbrev);
52 }
53
54 /**
55 * Constructor
56 */
57 protected PreservationMethod(String term, String label, String labelAbbrev) {
58 super(term, label, labelAbbrev);
59 }
60 }