/** * 获取创建日期 * * @return 创建日期 */ @JsonProperty @Field(store = Store.YES, index = Index.UN_TOKENIZED) @DateBridge(resolution = Resolution.SECOND) @Column(nullable = false, updatable = false) public Date getCreateDate() { return createDate; }
/** * 获取修改日期 * * @return 修改日期 */ @JsonProperty @Field(store = Store.YES, index = Index.UN_TOKENIZED) @DateBridge(resolution = Resolution.SECOND) @Column(nullable = false) public Date getModifyDate() { return modifyDate; }
@CalendarBridge(resolution = Resolution.DAY) public Calendar getCalendarPublication() { Calendar cal = Calendar.getInstance(); cal.setTime(this.publicationDate); return cal; }
@Temporal(TemporalType.DATE) @Field(analyze = Analyze.NO) @DateBridge(resolution = Resolution.DAY) public Date getPublished() { return published; }
public WebDSLDateBridge(Resolution resolution) { this.resolution = DateResolutionUtil.getLuceneResolution(resolution); }
@Column(name = "log_date", updatable = false) @Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO) @DateBridge(resolution = Resolution.DAY) public Date getLogDate() { return log.getLogDate(); }