/** * 获取创建日期 * * @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; }
@Temporal(TemporalType.DATE) @Field(analyze = Analyze.NO) @DateBridge(resolution = Resolution.DAY) public Date getPublished() { return published; }
@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(); }