Project

General

Profile

Revision 89465e48

ID89465e4845b495c97e0fddef11643a4275257778
Parent 55ff609d
Child 2b8f569f

Added by Ayco Hollemann over 5 years ago

Added package eu.etaxonomy.cdm.model.validation, with stubs for the two entities representing the outcome of a validation

View differences:

.gitattributes
936 936
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationshipType.java -text
937 937
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/package-info.java -text
938 938
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/package.html -text
939
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/validation/EntityConstraintViolation.java -text
940
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/validation/EntityValidationResult.java -text
939 941
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/view/AuditEvent.java -text
940 942
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/view/AuditEventRecord.java -text
941 943
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/view/AuditEventRecordImpl.java -text
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/validation/EntityConstraintViolation.java
1
package eu.etaxonomy.cdm.model.validation;
2

  
3
import javax.persistence.Entity;
4
import javax.xml.bind.annotation.XmlAccessType;
5
import javax.xml.bind.annotation.XmlAccessorType;
6
import javax.xml.bind.annotation.XmlRootElement;
7
import javax.xml.bind.annotation.XmlType;
8

  
9
import eu.etaxonomy.cdm.model.common.CdmBase;
10

  
11
@XmlAccessorType(XmlAccessType.FIELD)
12
@XmlType(name = "EntityConstraintViolation", propOrder = { "message" })
13
@XmlRootElement(name = "EntityConstraintViolation")
14
@Entity
15
public class EntityConstraintViolation extends CdmBase {
16

  
17
	private static final long serialVersionUID = 6685798691716413950L;
18
	
19
	private String message;
20

  
21

  
22
	public String getMessage()
23
	{
24
		return message;
25
	}
26

  
27

  
28
	public void setMessage(String message)
29
	{
30
		this.message = message;
31
	}
32

  
33
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/validation/EntityValidationResult.java
1
package eu.etaxonomy.cdm.model.validation;
2

  
3
import javax.persistence.Entity;
4
import javax.xml.bind.annotation.XmlAccessType;
5
import javax.xml.bind.annotation.XmlAccessorType;
6
import javax.xml.bind.annotation.XmlRootElement;
7
import javax.xml.bind.annotation.XmlType;
8

  
9
import eu.etaxonomy.cdm.model.common.CdmBase;
10

  
11
@XmlAccessorType(XmlAccessType.FIELD)
12
@XmlType(name = "EntityValidationResult", propOrder = { "entityId", "entityUuid", "entityValidationTrigger" })
13
@XmlRootElement(name = "EntityValidationResult")
14
@Entity
15
public class EntityValidationResult extends CdmBase {
16

  
17
	private static final long serialVersionUID = 9120571815593117363L;
18
	
19
	private int entityId;
20
	private int entityUuid;
21
	private int entityValidationTrigger;
22

  
23

  
24
	public int getEntityId()
25
	{
26
		return entityId;
27
	}
28

  
29

  
30
	public void setEntityId(int entityId)
31
	{
32
		this.entityId = entityId;
33
	}
34

  
35

  
36
	public int getEntityUuid()
37
	{
38
		return entityUuid;
39
	}
40

  
41

  
42
	public void setEntityUuid(int entityUuid)
43
	{
44
		this.entityUuid = entityUuid;
45
	}
46

  
47

  
48
	public int getEntityValidationTrigger()
49
	{
50
		return entityValidationTrigger;
51
	}
52

  
53

  
54
	public void setEntityValidationTrigger(int entityValidationTrigger)
55
	{
56
		this.entityValidationTrigger = entityValidationTrigger;
57
	}
58

  
59
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)