View Javadoc

1   package org.lsst.ccs.config;
2   
3   import org.hibernate.annotations.Immutable;
4   
5   import javax.persistence.Entity;
6   import javax.persistence.GeneratedValue;
7   import javax.persistence.Id;
8   
9   /**
10   * used to describe at which moment in time a value was set (used by ParameterConfiguration in Engineering mode)
11   * @author bamade
12   */
13  // Date: 21/05/12
14  
15      @Entity
16      @Immutable
17  class AValueEvent extends ValueEvent {
18      private static final long serialVersionUID = -8787682942631887448L;
19      @Id
20      @GeneratedValue
21      private long id;
22  
23       AValueEvent() {
24      }
25  
26      public AValueEvent( long time, String value) {
27          super(time, value);
28      }
29  
30      @Override
31      public long getId() {
32          return id ;
33      }
34  
35       void setId(long id) {
36          this.id = id;
37      }
38  }