Uploaded image for project: 'Hibernate ORM'
  1. HHH-12096

Problem finding correlated getter-method for field access

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.13, 5.3.0.Beta1
    • Component/s: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      HHH-11838 Closed introduced a potential bug that occurs whenever the persistent field has both a corresponding is and corresponding get method. E.g., given:

      @Entity
      class MyEntity
          @Id
          Integer id;
          @Basic
          String someValue;
      
          ...
      
          String getSomeValue() {
              ...
          }
      
          boolean isSomeValue() {
              ...
          }
      }
      

      The fix for HHH-11838 Closed attempted to reuse the code that is used to resolve the getter method for property-access, in which case it is illegal for there to be both. That is not the case here however.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: