Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Teneo searches for mapping file(s) even it has been already loaded
[Teneo] Teneo searches for mapping file(s) even it has been already loaded [message #78309] Wed, 04 April 2007 11:14 Go to next message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi,

I have number of emf models and initialization of HbDataStore is taking
a while say 15 seconds.
I am trying to use cacheable (addCacheableFile) mapping file, just to
see if it will reduce the time.
Though I have created and set configuration factory which extends
HbContextImpl and it seems that hibernate is using the cached file. But
once it is loaded. It looks that teneo still searches the mapping file.

[@APPNAME@] DEBUG [main] HbDataStore.mapModel(356) | Searching hbm files
in class paths of epackages
[@APPNAME@] DEBUG [main] StoreUtil.getFileList(501) | >>>> Building or
descriptor file List
[@APPNAME@] DEBUG [main] StoreUtil.getFileList(516) | Try path:
;hibernate.hbm.xml

Regards,
Parvez
Re: [Teneo] Teneo searches for mapping file(s) even it has been already loaded [message #78326 is a reply to message #78309] Wed, 04 April 2007 11:24 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Parvez,
Yes, Teneo does not check if the configuration uses a cached hbm. To prevent this you have to extend
the HbDataStore (or in 0.8.0 the HbSessionDataStore) and override the mapModel method with an empty
method.

gr. Martin

PC wrote:
> Hi,
>
> I have number of emf models and initialization of HbDataStore is taking
> a while say 15 seconds.
> I am trying to use cacheable (addCacheableFile) mapping file, just to
> see if it will reduce the time.
> Though I have created and set configuration factory which extends
> HbContextImpl and it seems that hibernate is using the cached file. But
> once it is loaded. It looks that teneo still searches the mapping file.
>
> [@APPNAME@] DEBUG [main] HbDataStore.mapModel(356) | Searching hbm files
> in class paths of epackages
> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(501) | >>>> Building or
> descriptor file List
> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(516) | Try path:
> ;hibernate.hbm.xml
>
> Regards,
> Parvez


--

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: [Teneo] Teneo searches for mapping file(s) even it has been already loaded [message #78340 is a reply to message #78326] Wed, 04 April 2007 11:57 Go to previous message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Thanks for feedback Martin.
I will try that.

Martin Taal wrote:
> Hi Parvez,
> Yes, Teneo does not check if the configuration uses a cached hbm. To
> prevent this you have to extend the HbDataStore (or in 0.8.0 the
> HbSessionDataStore) and override the mapModel method with an empty method.
>
> gr. Martin
>
> PC wrote:
>> Hi,
>>
>> I have number of emf models and initialization of HbDataStore is
>> taking a while say 15 seconds.
>> I am trying to use cacheable (addCacheableFile) mapping file, just to
>> see if it will reduce the time.
>> Though I have created and set configuration factory which extends
>> HbContextImpl and it seems that hibernate is using the cached file.
>> But once it is loaded. It looks that teneo still searches the mapping
>> file.
>>
>> [@APPNAME@] DEBUG [main] HbDataStore.mapModel(356) | Searching hbm
>> files in class paths of epackages
>> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(501) | >>>> Building or
>> descriptor file List
>> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(516) | Try path:
>> ;hibernate.hbm.xml
>>
>> Regards,
>> Parvez
>
>
Re: [Teneo] Teneo searches for mapping file(s) even it has been already loaded [message #604325 is a reply to message #78309] Wed, 04 April 2007 11:24 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Parvez,
Yes, Teneo does not check if the configuration uses a cached hbm. To prevent this you have to extend
the HbDataStore (or in 0.8.0 the HbSessionDataStore) and override the mapModel method with an empty
method.

gr. Martin

PC wrote:
> Hi,
>
> I have number of emf models and initialization of HbDataStore is taking
> a while say 15 seconds.
> I am trying to use cacheable (addCacheableFile) mapping file, just to
> see if it will reduce the time.
> Though I have created and set configuration factory which extends
> HbContextImpl and it seems that hibernate is using the cached file. But
> once it is loaded. It looks that teneo still searches the mapping file.
>
> [@APPNAME@] DEBUG [main] HbDataStore.mapModel(356) | Searching hbm files
> in class paths of epackages
> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(501) | >>>> Building or
> descriptor file List
> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(516) | Try path:
> ;hibernate.hbm.xml
>
> Regards,
> Parvez


--

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: [Teneo] Teneo searches for mapping file(s) even it has been already loaded [message #604329 is a reply to message #78326] Wed, 04 April 2007 11:57 Go to previous message
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Thanks for feedback Martin.
I will try that.

Martin Taal wrote:
> Hi Parvez,
> Yes, Teneo does not check if the configuration uses a cached hbm. To
> prevent this you have to extend the HbDataStore (or in 0.8.0 the
> HbSessionDataStore) and override the mapModel method with an empty method.
>
> gr. Martin
>
> PC wrote:
>> Hi,
>>
>> I have number of emf models and initialization of HbDataStore is
>> taking a while say 15 seconds.
>> I am trying to use cacheable (addCacheableFile) mapping file, just to
>> see if it will reduce the time.
>> Though I have created and set configuration factory which extends
>> HbContextImpl and it seems that hibernate is using the cached file.
>> But once it is loaded. It looks that teneo still searches the mapping
>> file.
>>
>> [@APPNAME@] DEBUG [main] HbDataStore.mapModel(356) | Searching hbm
>> files in class paths of epackages
>> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(501) | >>>> Building or
>> descriptor file List
>> [@APPNAME@] DEBUG [main] StoreUtil.getFileList(516) | Try path:
>> ;hibernate.hbm.xml
>>
>> Regards,
>> Parvez
>
>
Previous Topic:[Teneo] Teneo searches for mapping file(s) even it has been already loaded
Next Topic:Suppress rather than override static JET templates
Goto Forum:
  


Current Time: Sat Apr 20 01:32:04 GMT 2024

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

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

Back to the top