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.Id;
7   
8   /**
9    * Past change in a value that was modified during an engineering session.
10   * @author bamade
11   */
12  // Date: 21/05/12
13  
14      @Entity
15      @Immutable
16  class PastValueEvent extends ValueEvent {
17      private static final long serialVersionUID = -2214790804800742084L;
18      @Id
19      private long id ;
20  
21      PastValueEvent() {}
22  
23      public PastValueEvent(AValueEvent former) {
24          super(former.getTime(), former.getValue());
25          this.id = former.getId() ;
26      }
27      @Override
28      public long getId() {
29          return id  ;
30      }
31  
32      void setId(long id) {
33          this.id = id ;
34      }
35  }