Revision a784f00f
Added by Katja Luther about 14 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationship.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
import eu.etaxonomy.cdm.model.common.RelationshipBase; |
30 | 30 |
import eu.etaxonomy.cdm.model.reference.ReferenceBase; |
31 |
import eu.etaxonomy.cdm.validation.Level3; |
|
32 |
import eu.etaxonomy.cdm.validation.annotation.ChildTaxaMustBeLowerRankThanParent; |
|
33 |
import eu.etaxonomy.cdm.validation.annotation.ChildTaxaMustDeriveNameFromParent; |
|
31 | 34 |
|
32 | 35 |
/** |
33 | 36 |
* The class representing a relationship between two {@link Taxon ("accepted/correct") taxa}. |
... | ... | |
52 | 55 |
@XmlRootElement(name = "TaxonRelationship") |
53 | 56 |
@Entity |
54 | 57 |
@Audited |
58 |
@ChildTaxaMustBeLowerRankThanParent(groups = Level3.class) |
|
59 |
@ChildTaxaMustDeriveNameFromParent(groups = Level3.class) |
|
55 | 60 |
public class TaxonRelationship extends RelationshipBase<Taxon, Taxon, TaxonRelationshipType> { |
56 | 61 |
|
57 | 62 |
static private final Logger logger = Logger.getLogger(TaxonRelationship.class); |
Also available in: Unified diff
merge cate-development2 branch with trunk