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 anyone have any good sources of information of using NHibernate with Sql Azure
Does hibernate provide a method that returns an object's state (transient, persistent, detached)?
Does nHibernate create code that has all the details of the column? I know
Does anyone know if there is a way to generate different code in the
Does COUNT(*) have any significant impact for MySQL performance if query already has GROUP
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
Let's say I have the following 2 entities. (Please forgive any code typos, I
Is there any way to force the persistence order of objects in JPA 2
Can Hibernate implement pessimistic locking at the start of a Java transaction, or does

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.