HbResourceImpl [message #112732] |
Wed, 20 February 2008 13:30  |
Eclipse User |
|
|
|
I read that the HbResourceImpl replaces the HibernateResource in case
that I want to close the session each time.
I changed my code to use the HbResourceImpl, but it does not support
lazy loading.
Does any one knows how to fix this?
Sample code or new version? (i'm using 0.8.0)
Thanks
Yigal
|
|
|
|
|
Re: HbResourceImpl [message #112838 is a reply to message #112812] |
Wed, 20 February 2008 16:13  |
Eclipse User |
|
|
|
Can you enter a bugzilla for this then I can look at it? I am not sure if it solves your issue though.
gr. Martin
Yigal wrote:
> When the lazy load for the list is activated, it calls a method called
> getSessionWrapper from the HbResourceImpl. This method is not
> implemented and returns a null that causes a null exception
>
> Yigal
>
> Martin Taal wrote:
>> Hi Yigal,
>> To be honest, this resource implementation is not used very often
>> (afaik). What happens with your lazy loaded lists, do you get an
>> exception or is everything eagerly loaded?
>>
>> Why not use the standard HibernateResource?
>>
>> gr. Martin
>>
>> Yigal wrote:
>>> I read that the HbResourceImpl replaces the HibernateResource in case
>>> that I want to close the session each time.
>>> I changed my code to use the HbResourceImpl, but it does not support
>>> lazy loading.
>>>
>>> Does any one knows how to fix this?
>>> Sample code or new version? (i'm using 0.8.0)
>>>
>>> Thanks
>>> Yigal
>>
>>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: HbResourceImpl [message #615526 is a reply to message #112732] |
Wed, 20 February 2008 14:00  |
Eclipse User |
|
|
|
Hi Yigal,
To be honest, this resource implementation is not used very often (afaik). What happens with your
lazy loaded lists, do you get an exception or is everything eagerly loaded?
Why not use the standard HibernateResource?
gr. Martin
Yigal wrote:
> I read that the HbResourceImpl replaces the HibernateResource in case
> that I want to close the session each time.
> I changed my code to use the HbResourceImpl, but it does not support
> lazy loading.
>
> Does any one knows how to fix this?
> Sample code or new version? (i'm using 0.8.0)
>
> Thanks
> Yigal
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: HbResourceImpl [message #615528 is a reply to message #112787] |
Wed, 20 February 2008 14:52  |
Eclipse User |
|
|
|
When the lazy load for the list is activated, it calls a method called
getSessionWrapper from the HbResourceImpl. This method is not
implemented and returns a null that causes a null exception
Yigal
Martin Taal wrote:
> Hi Yigal,
> To be honest, this resource implementation is not used very often
> (afaik). What happens with your lazy loaded lists, do you get an
> exception or is everything eagerly loaded?
>
> Why not use the standard HibernateResource?
>
> gr. Martin
>
> Yigal wrote:
>> I read that the HbResourceImpl replaces the HibernateResource in case
>> that I want to close the session each time.
>> I changed my code to use the HbResourceImpl, but it does not support
>> lazy loading.
>>
>> Does any one knows how to fix this?
>> Sample code or new version? (i'm using 0.8.0)
>>
>> Thanks
>> Yigal
>
>
|
|
|
Re: HbResourceImpl [message #615530 is a reply to message #112812] |
Wed, 20 February 2008 16:13  |
Eclipse User |
|
|
|
Can you enter a bugzilla for this then I can look at it? I am not sure if it solves your issue though.
gr. Martin
Yigal wrote:
> When the lazy load for the list is activated, it calls a method called
> getSessionWrapper from the HbResourceImpl. This method is not
> implemented and returns a null that causes a null exception
>
> Yigal
>
> Martin Taal wrote:
>> Hi Yigal,
>> To be honest, this resource implementation is not used very often
>> (afaik). What happens with your lazy loaded lists, do you get an
>> exception or is everything eagerly loaded?
>>
>> Why not use the standard HibernateResource?
>>
>> gr. Martin
>>
>> Yigal wrote:
>>> I read that the HbResourceImpl replaces the HibernateResource in case
>>> that I want to close the session each time.
>>> I changed my code to use the HbResourceImpl, but it does not support
>>> lazy loading.
>>>
>>> Does any one knows how to fix this?
>>> Sample code or new version? (i'm using 0.8.0)
>>>
>>> Thanks
>>> Yigal
>>
>>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.09797 seconds