本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}