[Teneo] Teneo searches for mapping file(s) even it has been already loaded [message #78309] |
Wed, 04 April 2007 07:14  |
Eclipse User |
|
|
|
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 #78340 is a reply to message #78326] |
Wed, 04 April 2007 07:57  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05972 seconds