0

在hibernate-search 6中启动时我遇到了异常

type 'com.xxxx.yyy.zzz..model.Link': failures: - HSEARCH800007: Unable to resolve path '.featureName' to a persisted attribute in Hibernate ORM metadata. If this path points to a transient attribute, use @IndexingDependency(derivedFrom = ...) to specify which persisted attributes it is derived from. See the reference documentation for more information.

我有类似 Feature.java 和 Link.java 的代码

<code>
    @NaturalId(mutable = true)
    @Column(name = "feature_name", nullable = false)
    @NotNull
    @ApiModelProperty(required = true)
    @Size(min = 3, max = 50)
    @Pattern(regexp = "^[a-z0-9]+(-[a-z0-9]+)*$")
//    @FullTextField
    @GenericField(sortable = Sortable.YES)
  //  @Analyzer(definition = "lowercaseWhitespaceAnalyzer")
    private String featureName;
</code>


 <code>
         @JsonProperty("featureName")
        @FullTextField
    //    @Analyzer(definition = "lowercaseWhitespaceAnalyzer")
        public String getFeatureName() {
            return feature != null ? feature.getFeatureName() : null;
        }

</code>    

你能请任何人帮助我吗?

注意: 属性不是瞬态的

4

0 回答 0