(no commit message)
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / name / HybridRelationship.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.name;
11
12
13 import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
14 import org.apache.log4j.Logger;
15 import org.hibernate.annotations.Cascade;
16 import org.hibernate.annotations.CascadeType;
17
18 import java.util.*;
19 import javax.persistence.*;
20
21 /**
22 * http://rs.tdwg.org/ontology/voc/TaxonName.rdf#NomenclaturalNote
23 * @author m.doering
24 * @version 1.0
25 * @created 08-Nov-2007 13:06:26
26 */
27 @Entity
28 public class HybridRelationship extends ReferencedEntityBase {
29 static Logger logger = Logger.getLogger(HybridRelationship.class);
30 //The nomenclatural code rule considered. The article/note/recommendation in the code in question that is commented on in
31 //the note property.
32 private String ruleConsidered;
33 private BotanicalName parentName;
34 private HybridRelationshipType type;
35 private BotanicalName hybridName;
36
37 @ManyToOne
38 public HybridRelationshipType getType(){
39 return this.type;
40 }
41 public void setType(HybridRelationshipType type){
42 this.type = type;
43 }
44
45 @ManyToOne
46 @Cascade({CascadeType.SAVE_UPDATE})
47 public BotanicalName getParentName(){
48 return this.parentName;
49 }
50 public void setParentName(BotanicalName parentName){
51 this.parentName = parentName;
52 }
53
54 @ManyToOne
55 @Cascade({CascadeType.SAVE_UPDATE})
56 public BotanicalName getHybridName(){
57 return this.hybridName;
58 }
59 public void setHybridName(BotanicalName hybridName){
60 this.hybridName = hybridName;
61 }
62
63 public String getRuleConsidered(){
64 return this.ruleConsidered;
65 }
66 public void setRuleConsidered(String ruleConsidered){
67 this.ruleConsidered = ruleConsidered;
68 }
69
70 }