Java 类org.hibernate.search.annotations.DateBridge 实例源码

项目:my-paper    文件:BaseEntity.java   
/**
 * 获取创建日期
 * 
 * @return 创建日期
 */
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@DateBridge(resolution = Resolution.SECOND)
@Column(nullable = false, updatable = false)
public Date getCreateDate() {
    return createDate;
}
项目:my-paper    文件:BaseEntity.java   
/**
 * 获取修改日期
 * 
 * @return 修改日期
 */
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@DateBridge(resolution = Resolution.SECOND)
@Column(nullable = false)
public Date getModifyDate() {
    return modifyDate;
}
项目:bookManager    文件:Book.java   
@Temporal(TemporalType.DATE)
@Field(analyze = Analyze.NO)
@DateBridge(resolution = Resolution.DAY)
public Date getPublished() {
    return published;
}
项目:openyu-commons    文件:SeqLogEntitySupporter.java   
@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();
}