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

项目:my-paper    文件:Product.java   
/**
 * 获取销售价
 * 
 * @return 销售价
 */
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NumericField
@FieldBridge(impl = BigDecimalNumericFieldBridge.class)
@NotNull
@Min(0)
@Digits(integer = 12, fraction = 3)
@Column(nullable = false, precision = 21, scale = 6)
public BigDecimal getPrice() {
    return price;
}
项目:my-paper    文件:Product.java   
/**
 * 获取评分
 * 
 * @return 评分
 */
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NumericField
@Column(nullable = false, precision = 12, scale = 6)
public Float getScore() {
    return score;
}
项目:windup-rulesets    文件:Book.java   
@NumericFields({
    @NumericField(forField="isbn")
  })
@Field(store = Store.YES, index = Index.YES, indexNullAs = "-1")
public Integer getIsbn() {
    return isbn;
}