Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370145

Summary: When Maps are cached do not initialized its size always by executing a query to the database
Product: [Modeling] EMF Reporter: Krasimir Chobantonov <kchobantonov>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Krasimir Chobantonov CLA 2012-01-30 11:53:05 EST
Build Identifier: 1.2.0.v201111160433

When a reference to EMap is annotated that is cachable then whenever the Map is readed from the cache it will be initilized from the cache but its size will be initialized by executing a query "select count(*).." against the database.

Reproducible: Always

Steps to Reproduce:
1. Create an entity model that has a reference to EMap - annotate the reference as cacheable and make sure that when the map is loaded on subsequent requests to the same map then Hibernate will get it from the cache - when this is the case make sure that the select count(*) query generated by Teneo is not executed.
2.
3.
Comment 1 Martin Taal CLA 2012-01-30 16:24:01 EST
A new build is available which should solve this. Please re-open if not solved.

gr. Martin