Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8522089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:00:47+00:00 2026-06-11T07:00:47+00:00

Why evicted object still remains as hibernate proxy? I am invoking session.clear(); and in

  • 0

Why evicted object still remains as hibernate proxy?

I am invoking session.clear();

and in the next line I see on my debugger that one of the objects is still a hibernate proxy.

Is there any good explanation for such hibernate behaviour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:00:48+00:00Added an answer on June 11, 2026 at 7:00 am

    session.evict does can not alter the content of the variable which is copied on the stack when calling evict hence the variable still points to the proxy.

    AFAIK to ensure that you get reference equality it will return the initialised proxy evertime you session.get with the same id.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does Memory Pressure ever cause Session Information to be evicted in ASP.NET? If so,
I have a task endpoint that needs to process data (say >1MB file) uploaded
Can a key/value pair stored in memcached get evicted prior to its expiry if
It could be that I'm just expecting too much from django caching but just
I'm using Ehcache to cache objects that are very expensive to load in my
My deps file: - org.hibernate -> hibernate-core 3.6.8.Final: force: true exclude: - ant ->
I read the code sample/documentation about caching in the wiki page . I see
I'm facing the same issue others already posted on SO: On reading objects from
I'm storing a bunch of realtime data in redis. I'm setting a TTL of
when I tried to run grails -Dgrails.env=local run-app , I got the below error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.