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

项目:my-paper    文件:Article.java   
/**
 * 获取内容
 * 
 * @return 内容
 */
@Field(store = Store.YES, index = Index.TOKENIZED, analyzer = @Analyzer(impl = IKAnalyzer.class))
@Lob
public String getContent() {
    if (pageNumber != null) {
        String[] pageContents = getPageContents();
        if (pageNumber < 1) {
            pageNumber = 1;
        }
        if (pageNumber > pageContents.length) {
            pageNumber = pageContents.length;
        }
        return pageContents[pageNumber - 1];
    } else {
        return content;
    }
}
项目: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;
}
项目:my-paper    文件:Article.java   
/**
 * 获取标题
 * 
 * @return 标题
 */
@Field(store = Store.YES, index = Index.TOKENIZED, analyzer = @Analyzer(impl = IKAnalyzer.class))
@NotEmpty
@Length(max = 200)
@Column(nullable = false)
public String getTitle() {
    return title;
}
项目:my-paper    文件:Article.java   
/**
 * 获取是否发布
 * 
 * @return 是否发布
 */
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NotNull
@Column(nullable = false)
public Boolean getIsPublication() {
    return isPublication;
}
项目:my-paper    文件:Article.java   
/**
 * 获取是否置顶
 * 
 * @return 是否置顶
 */
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NotNull
@Column(nullable = false)
public Boolean getIsTop() {
    return isTop;
}
项目:my-paper    文件:OrderEntity.java   
/**
 * 获取排序
 * 
 * @return 排序
 */
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@Min(0)
@Column(name = "orders")
public Integer getOrder() {
    return order;
}
项目:my-paper    文件:Product.java   
/**
 * 获取编号
 * 
 * @return 编号
 */
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@Pattern(regexp = "[\\s\\S]*")
@Length(max = 100)
@Column(nullable = false, unique = true, length = 100)
public String getSn() {
    return sn;
}
项目:my-paper    文件:Product.java   
/**
 * 获取名称
 * 
 * @return 名称
 */
@JsonProperty
@Field(store = Store.YES, index = Index.TOKENIZED, analyzer = @Analyzer(impl = IKAnalyzer.class))
@NotEmpty
@Length(max = 200)
@Column(nullable = false)
public String getName() {
    return name;
}
项目:my-paper    文件:Product.java   
/**
 * 获取全称
 * 
 * @return 全称
 */
@JsonProperty
@Field(store = Store.YES, index = Index.NO)
@Column(nullable = false)
public String getFullName() {
    return fullName;
}
项目: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.NO)
@Min(0)
@Digits(integer = 12, fraction = 3)
@Column(nullable = false, precision = 21, scale = 6)
public BigDecimal getMarketPrice() {
    return marketPrice;
}
项目:my-paper    文件:Product.java   
/**
 * 获取展示图片
 * 
 * @return 展示图片
 */
@JsonProperty
@Field(store = Store.YES, index = Index.NO)
@Length(max = 200)
public String getImage() {
    return image;
}
项目:my-paper    文件:Product.java   
/**
 * 获取单位
 * 
 * @return 单位
 */
@JsonProperty
@Field(store = Store.YES, index = Index.NO)
@Length(max = 200)
public String getUnit() {
    return unit;
}
项目:my-paper    文件:Product.java   
/**
 * 获取赠送积分
 * 
 * @return 赠送积分
 */
@Field(store = Store.YES, index = Index.NO)
@Min(0)
@Column(nullable = false)
public Long getPoint() {
    return point;
}
项目:my-paper    文件:Product.java   
/**
 * 获取是否上架
 * 
 * @return 是否上架
 */
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NotNull
@Column(nullable = false)
public Boolean getIsMarketable() {
    return isMarketable;
}
项目:my-paper    文件:Product.java   
/**
 * 获取是否列出
 * 
 * @return 是否列出
 */
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NotNull
@Column(nullable = false)
public Boolean getIsList() {
    return isList;
}
项目:my-paper    文件:Product.java   
/**
 * 获取是否置顶
 * 
 * @return 是否置顶
 */
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NotNull
@Column(nullable = false)
public Boolean getIsTop() {
    return isTop;
}
项目:my-paper    文件:Product.java   
/**
 * 获取是否为赠品
 * 
 * @return 是否为赠品
 */
@JsonProperty
@Field(store = Store.YES, index = Index.UN_TOKENIZED)
@NotNull
@Column(nullable = false)
public Boolean getIsGift() {
    return isGift;
}
项目: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;
}
项目:CoCoTemp    文件:Site.java   
/**
 * Gets site name.
 *
 * @return the site name
 */
@Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@Column(name = "site_name")
public String getSiteName()
{
    return siteName;
}
项目:CoCoTemp    文件:Site.java   
/**
 * Gets site latitude.
 *
 * @return the site latitude
 */
@Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@FieldBridge(impl = DoubleBridge.class)
@Column(name = "site_latitude")
public double getSiteLatitude()
{
    return siteLatitude;
}
项目:CoCoTemp    文件:Site.java   
/**
 * Gets the site description.
 *
 * @return the site description.
 */
@Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@Column(name = "site_description")
public String getSiteDescription()
{
    return siteDescription;
}
项目:CoCoTemp    文件:Site.java   
/**
 * Gets site longitude.
 *
 * @return the site longitude
 */
@Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@FieldBridge(impl = DoubleBridge.class)
@Column(name = "site_longitude")
public double getSiteLongitude()
{
    return siteLongitude;
}
项目:UMLS-Terminology-Server    文件:TypeKeyValueJpa.java   
@Fields({
    @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "keySort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
@Override
public String getKey() {
  return key;
}
项目:UMLS-Terminology-Server    文件:DescriptorTreePositionJpa.java   
/**
 * Returns the node id. For JAXB.
 *
 * @return the node id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getNodeId() {
  return node == null ? null : node.getId();
}
项目:UMLS-Terminology-Server    文件:ComponentInfoRelationshipJpa.java   
/**
 * Returns the from name.
 *
 * @return the from name
 */
@Fields({
    @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO, analyzer = @Analyzer(definition = "noStopWord")),
    @Field(name = "fromNameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getFromName() {
  return fromName;
}
项目:UMLS-Terminology-Server    文件:DescriptorRelationshipJpa.java   
/**
 * Returns the alternate terminology ids.
 *
 * @return the alternate terminology ids
 */
/* see superclass */
@Override
@FieldBridge(impl = MapKeyValueToCsvBridge.class)
@Field(name = "alternateTerminologyIds", index = Index.YES, analyze = Analyze.YES, store = Store.NO)
public Map<String, String> getAlternateTerminologyIds() {
  if (alternateTerminologyIds == null) {
    alternateTerminologyIds = new HashMap<>(2);
  }
  return alternateTerminologyIds;
}
项目:UMLS-Terminology-Server    文件:AbstractChecklist.java   
/**
 * Returns the project id.
 *
 * @return the project id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getProjectId() {
  return project == null ? null : project.getId();
}
项目:UMLS-Terminology-Server    文件:WorklistJpa.java   
@Fields({
    @Field(bridge = @FieldBridge(impl = CollectionToCsvBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "authorsSort", bridge = @FieldBridge(impl = MinValueBridge.class), index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
@Override
public List<String> getAuthors() {
  if (authors == null) {
    authors = new ArrayList<>();
  }
  return authors;
}
项目:UMLS-Terminology-Server    文件:ProjectJpa.java   
@XmlJavaTypeAdapter(UserRoleMapAdapter.class)
@Fields({
    @Field(bridge = @FieldBridge(impl = UserRoleBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "userAnyRole", bridge = @FieldBridge(impl = UserMapUserNameBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO)
})
@Override
public Map<User, UserRole> getUserRoleMap() {
  if (userRoleMap == null) {
    userRoleMap = new HashMap<>();
  }
  return userRoleMap;
}
项目:openyu-commons    文件:SeqIdAuditEntitySupporter.java   
@Type(type = "org.openyu.commons.entity.usertype.AuditEntityUserType")
@Column(name = "audit", length = 570)
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
@FieldBridge(impl = AuditEntityBridge.class)
public AuditEntity getAudit()
{
    return audit;
}
项目:UMLS-Terminology-Server    文件:SourceDataFileJpa.java   
@Override
@Fields({
    @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "nameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getName() {
  return this.name;
}
项目:UMLS-Terminology-Server    文件:ConceptSubsetMemberJpa.java   
/**
 * Returns the member name. For JAXB.
 *
 * @return the member name
 */
@Fields({
    @Field(index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "noStopWord")),
    @Field(name = "memberNameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getMemberName() {
  return member == null ? null : member.getName();
}
项目:UMLS-Terminology-Server    文件:AtomJpa.java   
@Override
@FieldBridge(impl = MapKeyValueToCsvBridge.class)
@Field(name = "conceptTerminologyIds", index = Index.YES, analyze = Analyze.YES, store = Store.NO)
public Map<String, String> getConceptTerminologyIds() {
  if (conceptTerminologyIds == null) {
    conceptTerminologyIds = new HashMap<>(2);
  }
  return conceptTerminologyIds;
}
项目:UMLS-Terminology-Server    文件:ComponentInfoRelationshipJpa.java   
@Override
@FieldBridge(impl = MapKeyValueToCsvBridge.class)
@Field(name = "alternateTerminologyIds", index = Index.YES, analyze = Analyze.YES, store = Store.NO)
public Map<String, String> getAlternateTerminologyIds() {
  if (alternateTerminologyIds == null) {
    alternateTerminologyIds = new HashMap<>(2);
  }
  return alternateTerminologyIds;
}
项目:openyu-commons    文件:CatPoImpl.java   
@Type(type = "org.openyu.commons.entity.usertype.NamesEntityUserType")
@Column(name = "names", length = 2048)
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
@FieldBridge(impl = NamesEntityBridge.class)
public Set<LocaleNameEntity> getNames()
{
    return names.getNames();
}
项目:UMLS-Terminology-Server    文件:TrackingRecordJpa.java   
@Override
@Fields({
    @Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO, bridge = @FieldBridge(impl = LongBridge.class)),
    @Field(name = "clusterIdSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public Long getClusterId() {
  return clusterId;
}
项目:openyu-commons    文件:NamesEntitySupporter.java   
@Type(type = "org.openyu.commons.entity.usertype.NamesEntityUserType")
@Column(name = "names", length = 2048)
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
@FieldBridge(impl = NamesEntityBridge.class)
public Set<LocaleNameEntity> getNames() {
    return names;
}
项目:openyu-commons    文件:CatPoImpl.java   
@Type(type = "org.openyu.commons.entity.usertype.AuditEntityUserType")
@Column(name = "audit", length = 570)
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
@FieldBridge(impl = AuditEntityBridge.class)
public AuditEntity getAudit()
{
    return audit;
}