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

项目: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;
}
项目:windup-rulesets    文件:Book.java   
@CalendarBridge(resolution = Resolution.DAY)
public Calendar getCalendarPublication() 
{
    Calendar cal = Calendar.getInstance();
    cal.setTime(this.publicationDate);
    return cal;
}
项目:bookManager    文件:Book.java   
@Temporal(TemporalType.DATE)
@Field(analyze = Analyze.NO)
@DateBridge(resolution = Resolution.DAY)
public Date getPublished() {
    return published;
}
项目:webdsl    文件:WebDSLDateBridge.java   
public WebDSLDateBridge(Resolution resolution) {
    this.resolution = DateResolutionUtil.getLuceneResolution(resolution);
}
项目: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();
}