01 package trail.entity.beans;
02
03 import javax.persistence.*;
04 import java.sql.Timestamp;
05 import java.io.Serializable;
06
07 @Entity
08 @DiscriminatorValue (value="T")
09 public class TimedRecord extends Record
10 implements Serializable {
11
12 private Timestamp ts;
13
14 public TimedRecord () { }
15
16 public TimedRecord (Fund fund, Investor investor,
17 double saving, double result,
18 Timestamp ts) {
19 this.fund = fund;
20 this.investor = investor;
21 this.saving = saving;
22 this.result = result;
23 this.ts = ts;
24 }
25
26 public Timestamp getTs () {
27 return ts;
28 }
29
30 public void setTs (Timestamp ts) {
31 this.ts = ts;
32 }
33
34 }
|