Project

General

Profile

« Previous | Next » 

Revision 892efc69

Added by Andreas Kohlbecker almost 14 years ago

merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationship.java
31 31
import eu.etaxonomy.cdm.validation.Level3;
32 32
import eu.etaxonomy.cdm.validation.annotation.ChildTaxaMustBeLowerRankThanParent;
33 33
import eu.etaxonomy.cdm.validation.annotation.ChildTaxaMustDeriveNameFromParent;
34
import eu.etaxonomy.cdm.validation.annotation.ChildTaxaMustNotSkipRanks;
34 35

  
35 36
/**
36 37
 * The class representing a relationship between two {@link Taxon ("accepted/correct") taxa}. 
......
56 57
@Entity
57 58
@Audited
58 59
@ChildTaxaMustBeLowerRankThanParent(groups = Level3.class)
60
@ChildTaxaMustNotSkipRanks(groups = Level3.class)
59 61
@ChildTaxaMustDeriveNameFromParent(groups = Level3.class)
60 62
public class TaxonRelationship extends RelationshipBase<Taxon, Taxon, TaxonRelationshipType> {
61 63

  
......
187 189
		this.relatedTo = relatedTo;
188 190
	}
189 191

  
190
	protected void setType(TaxonRelationshipType type) {
192
	public void setType(TaxonRelationshipType type) {
191 193
		this.type = type;
192 194
	}
193 195
}

Also available in: Unified diff