Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » HbResourceImpl
HbResourceImpl [message #112732] Wed, 20 February 2008 18:30 Go to next message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 127
Registered: July 2009
Senior Member
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 19:00 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 19:52 Go to previous messageGo to next message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 127
Registered: July 2009
Senior Member
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 21:13 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 19:00 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 19:52 Go to previous message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 127
Registered: July 2009
Senior Member
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 21:13 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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: Fri Apr 26 02:47:07 GMT 2024

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

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

Back to the top