View Javadoc

1   /*
2    * PropertyModification.java
3    * Created on 2 Сентябрь 2006 г., 23:43
4    */
5   
6   package org.weda.domain;
7   
8   import javax.persistence.Entity;
9   import javax.persistence.GeneratedValue;
10  import javax.persistence.GenerationType;
11  import javax.persistence.Id;
12  import javax.persistence.ManyToOne;
13  import org.weda.property.annotations.Description;
14  
15  /**
16   *
17   * @author Mikhail Titov
18   */
19  @Entity()
20  public class PropertyModification {
21      private Long id;
22      private ObjectModificationType modificationType;
23      private String name;
24      private String value;
25      
26      public PropertyModification(){}
27      
28      public PropertyModification(
29              ObjectModificationType modificationType, String name, String value)
30      {
31          this.modificationType = modificationType;
32          this.name = name;
33          this.value = value;
34      }
35  
36      @Id() @GeneratedValue(strategy=GenerationType.AUTO)
37      public Long getId() {
38          return id;
39      }
40  
41      public void setId(Long id) {
42          this.id = id;
43      }
44  
45      @ManyToOne()
46      public ObjectModificationType getModificationType() {
47          return modificationType;
48      }
49  
50      public void setModificationType(ObjectModificationType modificationType) {
51          this.modificationType = modificationType;
52      }
53  
54      @Description(displayName="message:displayName")
55      public String getName() {
56          return name;
57      }
58  
59      public void setName(String name) {
60          this.name = name;
61      }
62  
63      @Description(displayName="message:displayName")
64      public String getValue() {
65          return value;
66      }
67  
68      public void setValue(String value) {
69          this.value = value;
70      }
71  }