Uploaded image for project: 'Hibernate Search'
  1. Hibernate Search
  2. HSEARCH-2486

@ContainedIn in super class being ignored when child class has no Search-specific annotations

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.6.Final, 5.6.0.CR1, 5.7.0.Beta2
    • Component/s: None
    • Labels:
      None

      Description

      Initially ran into when updating a boolean on an indexedembedded object it was not propagating the change to the index, but when updating an enum on the same object, the change was noticed and both the previously lost change and the enum change were reflected in the index. The indexed fields were on an abstract mapped super class and overriding and indexing the getter on the child object seemed to fix the problem. However, in talking to some of the developers this seemed to not be the intended functionality.

      I wasn't able to completely replicate the behavior in the attached test case; got the indexed boolean to not propagate changes to the index, but in there the enum isn't as well. The field bridge on the enum is solely to make the test case as close to the setup in which the issue is occurring. Additional things: the project where the issue is occurring is using hibernate search 5.3 and is using JpaRepositories instead of more direct session management as in the test case.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: