Project

General

Profile

« Previous | Next » 

Revision 50567

reverted Date field types

View differences:

modules/dnet-datasource-manager-common/trunk/src/main/java/eu/dnetlib/enabling/datasources/common/Api.java
1 1
package eu.dnetlib.enabling.datasources.common;
2 2

  
3
import java.util.Date;
3
import java.sql.Timestamp;
4 4
import java.util.Objects;
5 5
import java.util.Set;
6 6
import javax.persistence.*;
......
34 34
	protected Integer lastCollectionTotal;
35 35

  
36 36
	@Column(name = "last_collection_date")
37
	@Temporal(TemporalType.TIMESTAMP)
38
	protected Date lastCollectionDate;
37
	protected Timestamp lastCollectionDate;
39 38

  
40 39
	@Column(name = "last_collection_mdid")
41 40
	protected String lastCollectionMdid;
......
44 43
	protected Integer lastAggregationTotal;
45 44

  
46 45
	@Column(name = "last_aggregation_date")
47
	@Temporal(TemporalType.TIMESTAMP)
48
	protected Date lastAggregationDate;
46
	protected Timestamp lastAggregationDate;
49 47

  
50 48
	@Column(name = "last_aggregation_mdid")
51 49
	protected String lastAggregationMdid;
......
54 52
	protected Integer lastDownloadTotal;
55 53

  
56 54
	@Column(name = "last_download_date")
57
	@Temporal(TemporalType.TIMESTAMP)
58
	protected Date lastDownloadDate;
55
	protected Timestamp lastDownloadDate;
59 56

  
60 57
	@Column(name = "last_download_objid")
61 58
	protected String lastDownloadObjid;
......
113 110
		return lastCollectionTotal;
114 111
	}
115 112

  
116
	public Date getLastCollectionDate() {
113
	public Timestamp getLastCollectionDate() {
117 114
		return lastCollectionDate;
118 115
	}
119 116

  
......
125 122
		return lastAggregationTotal;
126 123
	}
127 124

  
128
	public Date getLastAggregationDate() {
125
	public Timestamp getLastAggregationDate() {
129 126
		return lastAggregationDate;
130 127
	}
131 128

  
......
137 134
		return lastDownloadTotal;
138 135
	}
139 136

  
140
	public Date getLastDownloadDate() {
137
	public Timestamp getLastDownloadDate() {
141 138
		return lastDownloadDate;
142 139
	}
143 140

  
......
212 209
		return this;
213 210
	}
214 211

  
215
	public Api<AP> setLastCollectionDate(final Date lastCollectionDate) {
212
	public Api<AP> setLastCollectionDate(final Timestamp lastCollectionDate) {
216 213
		this.lastCollectionDate = lastCollectionDate;
217 214
		return this;
218 215
	}
......
227 224
		return this;
228 225
	}
229 226

  
230
	public Api<AP> setLastAggregationDate(final Date lastAggregationDate) {
227
	public Api<AP> setLastAggregationDate(final Timestamp lastAggregationDate) {
231 228
		this.lastAggregationDate = lastAggregationDate;
232 229
		return this;
233 230
	}
......
242 239
		return this;
243 240
	}
244 241

  
245
	public Api<AP> setLastDownloadDate(final Date lastDownloadDate) {
242
	public Api<AP> setLastDownloadDate(final Timestamp lastDownloadDate) {
246 243
		this.lastDownloadDate = lastDownloadDate;
247 244
		return this;
248 245
	}

Also available in: Unified diff