Skip to main content



      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 07:14 Go to next message
Eclipse UserFriend
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 07:24 Go to previous messageGo to next message
Eclipse UserFriend
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 07:57 Go to previous message
Eclipse UserFriend
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 07:24 Go to previous message
Eclipse UserFriend
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 07:57 Go to previous message
Eclipse UserFriend
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: Thu May 01 02:16:34 EDT 2025

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

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

Back to the top