(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / description / Distribution.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.description;
11
12 import eu.etaxonomy.cdm.model.location.NamedArea;
13 import org.apache.log4j.Logger;
14 import org.hibernate.annotations.Cascade;
15 import org.hibernate.annotations.CascadeType;
16 import javax.persistence.*;
17
18 /**
19 * fact attribute contains the concrete occurrence term like "Extinct" This allows
20 * all terms to enter the database and classify them basically according to class
21 * hierarchy of distribution. {validInRegion mandatory} {type is "distribution"}
22 * @author m.doering
23 * @version 1.0
24 * @created 08-Nov-2007 13:06:21
25 */
26 @Entity
27 public class Distribution extends FeatureBase {
28 static Logger logger = Logger.getLogger(Distribution.class);
29
30 private NamedArea area;
31 private PresenceAbsenceTermBase status;
32
33
34
35
36 @ManyToOne
37 @Cascade({CascadeType.SAVE_UPDATE})
38 public NamedArea getArea(){
39 return this.area;
40 }
41 public void setArea(NamedArea area){
42 this.area = area;
43 }
44
45 @ManyToOne
46 public PresenceAbsenceTermBase getStatus(){
47 return this.status;
48 }
49 public void setStatus(PresenceAbsenceTermBase status){
50 this.status = status;
51 }
52
53 }