//构造函数
public zxxxEntity(Timestamp Time1, Timestamp Time2) {
//String类型转为timestamp类型
Timestamp time1= new Timestamp(System.currentTimeMillis());
time1.valueOf(Time1.toString());
this.Time1 = time1;
//String类型转为timestamp类型
Timestamp time2= new Timestamp(System.currentTimeMillis());
time2.valueOf(Time2.toString());
this.Time2= time2;
}