You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ashish Raniwala <ar...@gmail.com> on 2005/02/20 01:24:55 UTC

Hibernate Lazy one-to-many

Hi,
I want to configure Spring so I can do lazy initialization of one-to-many hibernate collections in tapestry component/page.
I guess I need to configure openSessionInViewInterceptor for that but don't know how to do that.
I looked into blog http://jroller.com/comments/kbaum/Weblog/orm_lazy_initialization_with_dao#comments 
but still not clear how to configure interceptor with tapestry component.
Any help is appreciated.
Thanks,
Ashish

Re: Hibernate Lazy one-to-many

Posted by Jonathan Millett <jo...@millett.net>.
Try these articles by Kurt Williams:
http://jroller.org/page/cardsharp/20050207
http://jroller.org/page/cardsharp/20040728

Also, checkout archives of this list for Richard Hensley's discussions 
of how to create a custom DataSqueezer that is Orm aware.

Jon

Ashish Raniwala wrote:

>Hi,
>I want to configure Spring so I can do lazy initialization of one-to-many hibernate collections in tapestry component/page.
>I guess I need to configure openSessionInViewInterceptor for that but don't know how to do that.
>I looked into blog http://jroller.com/comments/kbaum/Weblog/orm_lazy_initialization_with_dao#comments 
>but still not clear how to configure interceptor with tapestry component.
>Any help is appreciated.
>Thanks,
>Ashish
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Hibernate Lazy one-to-many

Posted by Per Olesen <po...@nordija.com>.
Hi,

To use OpenSessionInView from components/pages you should use the spring 
OpenSessionInViewFilter. It is a servlet filter, that you configure and mount 
in your web.xml.

/Per

On Sunday 20 February 2005 01:24, Ashish Raniwala wrote:
> Hi,
> I want to configure Spring so I can do lazy initialization of one-to-many
> hibernate collections in tapestry component/page. I guess I need to
> configure openSessionInViewInterceptor for that but don't know how to do
> that. I looked into blog
> http://jroller.com/comments/kbaum/Weblog/orm_lazy_initialization_with_dao#c
>omments but still not clear how to configure interceptor with tapestry
> component. Any help is appreciated.
> Thanks,
> Ashish

-- 
Per Olesen @ Nordija A/S - www.nordija.com - main#: +45 70 20 25 10
email: polesen@nordija.com - cell#: +45 23 38 95 81

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org