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.