2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.name
;
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
;
19 import javax
.persistence
.*;
22 * http://rs.tdwg.org/ontology/voc/TaxonName.rdf#NomenclaturalNote
25 * @created 08-Nov-2007 13:06:26
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
32 private String ruleConsidered
;
33 private BotanicalName parentName
;
34 private HybridRelationshipType type
;
35 private BotanicalName hybridName
;
38 public HybridRelationshipType
getType(){
41 public void setType(HybridRelationshipType type
){
46 @Cascade({CascadeType
.SAVE_UPDATE
})
47 public BotanicalName
getParentName(){
48 return this.parentName
;
50 public void setParentName(BotanicalName parentName
){
51 this.parentName
= parentName
;
55 @Cascade({CascadeType
.SAVE_UPDATE
})
56 public BotanicalName
getHybridName(){
57 return this.hybridName
;
59 public void setHybridName(BotanicalName hybridName
){
60 this.hybridName
= hybridName
;
63 public String
getRuleConsidered(){
64 return this.ruleConsidered
;
66 public void setRuleConsidered(String ruleConsidered
){
67 this.ruleConsidered
= ruleConsidered
;