Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-949

Warning in logs due to missing equals & hashcode on TallyInstanceViewKey

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      During service startup we are getting warnings printed from hibernate due to the following. 

      2023-02-27 18:40:25,757 [thread=main] [WARN ] [org.hibernate.mapping.RootClass] - HHH000038: Composite-id class does not override equals(): org.candlepin.subscriptions.db.model.TallyInstanceViewKey
      2023-02-27 18:40:25,760 [thread=main] [WARN ] [org.hibernate.mapping.RootClass] - HHH000039: Composite-id class does not override hashCode(): org.candlepin.subscriptions.db.model.TallyInstanceViewKey 

      Done:

      Equals & hashcode methods are properly defined on TallyInstanceViewKey and the warnings are no longer being printed on startup. 

              kflahert@redhat.com Kevin Flaherty
              bcourt@redhat.com Barnaby Court
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: