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 7045087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:29:14+00:00 2026-05-28T02:29:14+00:00

Does Hibernate 4 bring any improvements regarding lazy loading? We are using Hibernate as

  • 0

Does Hibernate 4 bring any improvements regarding lazy loading?

We are using Hibernate as an JPA provider and want to keep our code clean of hibernate specific stuff. We don’t want to use the Hibernate session ojbects. In our application we are using Spring and JSF as well. We figured that there is a OpenSessionInViewFilter and a OpenSessionInViewInterceptor however both only seem to work, when the beans are in request scope. Intercepting of the Spring session scope (@Scope("session")) doesn’t seem to work.

Other frameworks allow weaving or enhancement of the beans. Is something similar now possible with Hibernate 4 or where other new features introduces that allow the code to stay free of hibernate specific extentensions? (Some configuration is of course is ok.)

I already checked What's new in Hibernate 4? and saw that they worked on the sessionfactory, however I didn’t understand if it helps or not.

  • 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-05-28T02:29:14+00:00Added an answer on May 28, 2026 at 2:29 am

    There seem to be no improvements with hibernate 4 regarding LazyLoading for other scopes than the request scope.

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

Sidebar

Related Questions

Does hibernate HQL queries support using select min, max, count and other sql functions?
Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output
does anyone know if you can do something like this using the (N)Hibernate criteria
Does hibernate provide a method that returns an object's state (transient, persistent, detached)?
I know this is a subjective question, but why does Hibernate seem to be
Does the Hibernate API support object result sets in the form of a collection
Does anybody know what's going on here: I run hibernate 3.2.6 against a PostgreSQL
Does nHibernate create code that has all the details of the column? I know
In Java, Hibernate is king in terms of automating code/DB synchronization. And I'm aware
The following code works on insert but on update modifier is never set, any

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.