1
2
3
4
5
6
7 package org.weda.property;
8
9 import java.util.Date;
10 import org.weda.property.annotations.ConstraintId;
11 import org.weda.property.annotations.Constraints;
12 import org.weda.property.annotations.Description;
13
14 /**
15 *
16 * @author Mikhail Titov
17 */
18 public class TestObject {
19 public enum Sex{male, famale};
20 private Integer constaintValue;
21 private Sex sex;
22
23 @Constraints({
24 @ConstraintId("test-values-set"),
25 @ConstraintId("test-values-set2")
26 })
27 public Integer getConstaintValue() {
28 return constaintValue;
29 }
30
31 public void setConstaintValue(Integer constaintValue) {
32 this.constaintValue = constaintValue;
33 }
34
35 public Sex getSex() {
36 return sex;
37 }
38
39 public void setSex(Sex sex) {
40 this.sex = sex;
41 }
42 }