Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » HbResourceImpl
HbResourceImpl [message #112732] Wed, 20 February 2008 13:30 Go to next message
Eclipse UserFriend
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 #112787 is a reply to message #112732] Wed, 20 February 2008 14:00 Go to previous messageGo to next message
Eclipse UserFriend
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 #112812 is a reply to message #112787] Wed, 20 February 2008 14:52 Go to previous messageGo to next message
Eclipse UserFriend
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 #112838 is a reply to message #112812] Wed, 20 February 2008 16:13 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Too many join - issue with the HibernateMapping file
Next Topic:[CDO] Questions about 0.8.0M5
Goto Forum:
  


Current Time: Tue Jul 22 16:22:22 EDT 2025

Powered by FUDForum. Page generated in 0.09797 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top