本文整理汇总了Java中org.hibernate.search.annotations.Resolution类的典型用法代码示例。如果您正苦于以下问题:Java Resolution类的具体用法?Java Resolution怎么用?Java Resolution使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Resolution类属于org.hibernate.search.annotations包,在下文中一共展示了Resolution类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCreateDate
import org.hibernate.search.annotations.Resolution; //导入依赖的package包/类
/**
* 获取创建日期
*
* @return 创建日期
*/
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@DateBridge(resolution = Resolution.SECOND)
@Column(nullable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
示例2: getModifyDate
import org.hibernate.search.annotations.Resolution; //导入依赖的package包/类
/**
* 获取修改日期
*
* @return 修改日期
*/
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@DateBridge(resolution = Resolution.SECOND)
@Column(nullable = false)
public Date getModifyDate() {
return modifyDate;
}
示例3: getCalendarPublication
import org.hibernate.search.annotations.Resolution; //导入依赖的package包/类
@CalendarBridge(resolution = Resolution.DAY)
public Calendar getCalendarPublication()
{
Calendar cal = Calendar.getInstance();
cal.setTime(this.publicationDate);
return cal;
}
示例4: getPublished
import org.hibernate.search.annotations.Resolution; //导入依赖的package包/类
@Temporal(TemporalType.DATE)
@Field(analyze = Analyze.NO)
@DateBridge(resolution = Resolution.DAY)
public Date getPublished() {
return published;
}
示例5: WebDSLDateBridge
import org.hibernate.search.annotations.Resolution; //导入依赖的package包/类
public WebDSLDateBridge(Resolution resolution) {
this.resolution = DateResolutionUtil.getLuceneResolution(resolution);
}
示例6: getLogDate
import org.hibernate.search.annotations.Resolution; //导入依赖的package包/类
@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();
}