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

项目:openyu-commons    文件:DogPoImpl.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;
}
项目: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;
}
项目:UMLS-Terminology-Server    文件:TypeKeyValueJpa.java   
/**
 * 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;
}
项目: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;
}
项目:UMLS-Terminology-Server    文件:ProjectJpa.java   
@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;
}
项目:UMLS-Terminology-Server    文件:StringClassIdentityJpa.java   
/**
 * 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;
}
项目:UMLS-Terminology-Server    文件:UserJpa.java   
@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;
}
项目:UMLS-Terminology-Server    文件:ConceptRelationshipJpa.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;
}
项目:UMLS-Terminology-Server    文件:AtomNoteJpa.java   
/**
 * 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;
}
项目: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;
}
项目: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    文件:MappingJpa.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;
}
项目:UMLS-Terminology-Server    文件:ConceptJpa.java   
@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;
}
项目:UMLS-Terminology-Server    文件:AtomSubsetJpa.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;
}
项目:UMLS-Terminology-Server    文件:DescriptorNoteJpa.java   
/**
 * 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;
}
项目:UMLS-Terminology-Server    文件:ConceptTreePositionJpa.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    文件: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    文件:AtomJpa.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;
}
项目: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    文件:CodeRelationshipJpa.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;
}
项目:UMLS-Terminology-Server    文件:ConceptNoteJpa.java   
/**
 * Returns the concept id.
 *
 * @return the concept id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getConceptId() {
  return (concept != null) ? concept.getId() : 0;
}
项目:UMLS-Terminology-Server    文件:CodeNoteJpa.java   
/**
 * Returns the code id.
 *
 * @return the code id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getCodeId() {
  return (code != null) ? code.getId() : 0;
}
项目:UMLS-Terminology-Server    文件:AtomTreePositionJpa.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    文件:ConceptSubsetJpa.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;
}
项目:UMLS-Terminology-Server    文件:MapSetJpa.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;
}
项目:UMLS-Terminology-Server    文件:AtomRelationshipJpa.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;
}
项目:UMLS-Terminology-Server    文件:CodeTreePositionJpa.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    文件:ChecklistNoteJpa.java   
/**
 * Returns the checklist id.
 *
 * @return the checklist id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getChecklistId() {
  return (checklist != null) ? checklist.getId() : 0;
}
项目: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    文件:WorklistJpa.java   
@Fields({
    @Field(bridge = @FieldBridge(impl = MaxStateHistoryBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "workflowStateSort", bridge = @FieldBridge(impl = MaxStateHistoryBridge.class), index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
  @Override
  public Map<String, Date> getWorkflowState() {
    return getWorkflowStateHistory();
  }
项目:UMLS-Terminology-Server    文件:WorklistJpa.java   
@Fields({
    @Field(bridge = @FieldBridge(impl = CollectionToCsvBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO),
    @Field(name = "reviewersSort", bridge = @FieldBridge(impl = MinValueBridge.class), index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
@Override
public List<String> getReviewers() {
  if (reviewers == null) {
    reviewers = new ArrayList<>();
  }
  return reviewers;
}
项目:UMLS-Terminology-Server    文件:TrackingRecordJpa.java   
@Field(bridge = @FieldBridge(impl = CollectionToCsvBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@Override
public Set<Long> getComponentIds() {
  if (componentIds == null) {
    componentIds = new HashSet<>();
  }
  return componentIds;
}
项目:UMLS-Terminology-Server    文件:TrackingRecordJpa.java   
@Field(bridge = @FieldBridge(impl = CollectionToCsvBridge.class), index = Index.YES, analyze = Analyze.YES, store = Store.NO)
@Override
public Set<Long> getOrigConceptIds() {
  if (origConceptIds == null) {
    origConceptIds = new HashSet<>();
  }
  return origConceptIds;
}
项目: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;
}
项目:UMLS-Terminology-Server    文件:AbstractChecklist.java   
@Override
@Fields({
    @Field(name = "name", index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "noStopWord"), bridge = @FieldBridge(impl = SplitUnderscoreBridge.class)),
    @Field(name = "nameSort", index = Index.YES, analyze = Analyze.NO, store = Store.NO)
})
public String getName() {
  return name;
}
项目: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    文件:WorklistNoteJpa.java   
/**
 * Returns the worklist id.
 *
 * @return the worklist id
 */
@XmlElement
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
public Long getWorklistId() {
  return (worklist != null) ? worklist.getId() : 0;
}
项目:UMLS-Terminology-Server    文件:SourceDataJpa.java   
/**
 * Gets the id.
 *
 * @return the id
 */
@FieldBridge(impl = LongBridge.class)
@Field(index = Index.YES, analyze = Analyze.NO, store = Store.NO)
@Override
public Long getId() {
  return this.id;
}
项目:UMLS-Terminology-Server    文件:ReportJpa.java   
/**
 * Returns the project id. For JAXB
 *
 * @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) ? project.getId() : 0;
}