Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-119013

Session.evict() is not evicting the object from cache when it is not exactly same object

    Details

      Description

      This issue has been covered by integration test, no need to test it manually.

      Hibernate's session.evict(object) will only evict the exactly same object related entries from its first level cache, and our entity cache stores ***CacheModel and transfers to the corresponding impl object when hit, this means each time you hit entity cache, you will get a different entity object. 

      This is going to cause the first level cache of hibernate won't be evicted when you call session.evict() passing in an object retrieved from entity cache.

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              tina.tian Tina Tian
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Engineering Assignee:
              Tina Tian
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 9 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X