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

Bug 320385

Summary: [Hibernate] Enable eventListeners set in hibernate Configuration in HbSessionDataStore
Product: [Modeling] EMF Reporter: Tom <tell-tom>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Tom CLA 2010-07-20 08:41:05 EDT
Build Identifier: 

Event listeners in the hibernate.cfg.xml are ignored by HbSessionDataStore, since they do not show up in the Properties object. One solution could be to pass the Configuration object directly to the HbSessionDataStore.

Reproducible: Always

Steps to Reproduce:
1. Add event listener to hibernate.cfg.xml
2. Create a HbSessionDataStore 
3. .setProperties(cfg.getProperties()) then initialize()

Event listener is not called but should be. The Configuration Object does not have the eventListener set.
Comment 1 Martin Taal CLA 2010-08-18 08:44:51 EDT
Fix committed to cvs, will be in the next build

It is now possible to set the configuration directly in the datastore
Comment 2 Martin Taal CLA 2010-08-18 10:21:22 EDT
Fix is available in build of today on interim update site:
http://download.eclipse.org/modeling/emf/teneo/updates/1.2.0/interim/