@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; }
/** * 获取销售价 * * @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; }
/** * 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; }
@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; }
@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; }
/** * 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; }
@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; }
@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; }
/** * 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; }
@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; }
@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(); }
@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; }
/** * 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; }
/** * 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(); }
@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; }
/** * 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; }
/** * 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; }
/** * 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; }
@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; }
@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(); }
@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; }
@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; }
@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; }
@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; }
@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; }
/** * 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(); }
/** * 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; }
/** * 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; }
/** * 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; }