当前位置: 首页>>代码示例>>Java>>正文


Java FieldBridge类代码示例

本文整理汇总了Java中org.hibernate.search.annotations.FieldBridge的典型用法代码示例。如果您正苦于以下问题:Java FieldBridge类的具体用法?Java FieldBridge怎么用?Java FieldBridge使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FieldBridge类属于org.hibernate.search.annotations包,在下文中一共展示了FieldBridge类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getNames

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@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;
}
 
开发者ID:mixaceh,项目名称:openyu-commons,代码行数:8,代码来源:DogPoImpl.java

示例2: getPrice

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
/**
 * 获取销售价
 * 
 * @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;
}
 
开发者ID:justinbaby,项目名称:my-paper,代码行数:17,代码来源:Product.java

示例3: getId

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
/**
 * Returns the id.
 *
 * @return the id
 */
/* see superclass */
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
@Override
public Long getId() {
  return id;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:TypeKeyValueJpa.java

示例4: getUserRoleMap

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@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;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:ProjectJpa.java

示例5: getSemanticTypeCategoryMap

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@FieldBridge(impl = MapKeyValueToCsvBridge.class)
@Field(name = "semanticTypeCategoryMap", index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@Override
public Map<String, String> getSemanticTypeCategoryMap() {
  if (semanticTypeCategoryMap == null) {
    semanticTypeCategoryMap = new HashMap<>();
  }
  return semanticTypeCategoryMap;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:10,代码来源:ProjectJpa.java

示例6: getId

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
/**
 * Returns the id.
 *
 * @return the id
 */
/* see superclass */
@Override
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.YES)
public Long getId() {
  return id;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:StringClassIdentityJpa.java

示例7: getProjectRoleMap

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@XmlJavaTypeAdapter(ProjectRoleMapAdapter.class)
@Fields({
    @Field(bridge = @FieldBridge(impl = ProjectRoleBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "projectAnyRole", bridge = @FieldBridge(impl = MapIdBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO)
})
@Override
public Map<Project, UserRole> getProjectRoleMap() {
  if (projectRoleMap == null) {
    projectRoleMap = new HashMap<>();
  }
  return projectRoleMap;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:13,代码来源:UserJpa.java

示例8: getAlternateTerminologyIds

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@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;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:10,代码来源:ConceptRelationshipJpa.java

示例9: getAtomId

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
/**
 * Returns the atom id.
 *
 * @return the atom id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getAtomId() {
  return (atom != null) ? atom.getId() : 0;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:12,代码来源:AtomNoteJpa.java

示例10: getAudit

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@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;
}
 
开发者ID:mixaceh,项目名称:openyu-commons,代码行数:9,代码来源:CatPoImpl.java

示例11: getNames

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@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();
}
 
开发者ID:mixaceh,项目名称:openyu-commons,代码行数:9,代码来源:CatPoImpl.java

示例12: getLabels

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@Override
@FieldBridge(impl = CollectionToCsvBridge.class)
@Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO)
public List<String> getLabels() {
  if (labels == null) {
    labels = new ArrayList<>();
  }
  return labels;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:10,代码来源:ConceptJpa.java

示例13: getDescriptorId

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
/**
 * Returns the descriptor id.
 *
 * @return the descriptor id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getDescriptorId() {
  return (descriptor != null) ? descriptor.getId() : 0;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:12,代码来源:DescriptorNoteJpa.java

示例14: getNodeId

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
/**
 * 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();
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:12,代码来源:ConceptTreePositionJpa.java

示例15: getConceptTerminologyIds

import org.hibernate.search.annotations.FieldBridge; //导入依赖的package包/类
@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;
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:10,代码来源:AtomJpa.java


注:本文中的org.hibernate.search.annotations.FieldBridge类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。