Results 1 to 3 of 3

Thread: how to have Hibernate lazy loading with Spring transaction

  1. #1

    Default how to have Hibernate lazy loading with Spring transaction

    Hi,
    My application is built on spring hibernate. we are using inversion of control with hibernate template and callback.

    For transaction mamagement we are using spring's transaction mamagement.
    but the problem we are facing is that we are not able to use hibernate lazy loading feature with spring's transaction. Evey time getting not in session exception. one remedy is to use the OpenSessionInViewFilter but for that we need to use the AOP approach for hibernate spring integration.

    But we are not able to change our spring hibernate integration approach in the application from inversion control technique . Without lazy loading, our application is loading too much objects intially.

    can any one suggest any other approach other than OpenSessionInViewFilter to use lazy loading with spring transaction, or is it possible to have both the inversion control approach and AOP interceptor approach simultaneously in the same application. if yes kindly suggest how to implement.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Last edited by robyn; May 14th, 2006 at 09:58 AM.

  3. #3
    Join Date
    Oct 2005
    Posts
    11

    Default

    Could someone repost the link for this as the one above doesn't work and I desperately need help with the exact same problem!

    Thanks!

Similar Threads

  1. how to use hibernate lazy loading with spring transaction
    By tanmoy.chakraborty in forum Data
    Replies: 1
    Last Post: Oct 11th, 2005, 02:07 AM
  2. Replies: 0
    Last Post: Jun 6th, 2005, 06:22 AM
  3. Replies: 3
    Last Post: May 16th, 2005, 07:04 AM
  4. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  5. Transaction pb Hibernate/MySQL
    By syluser in forum Data
    Replies: 2
    Last Post: Aug 28th, 2004, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •