Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320385 - [Hibernate] Enable eventListeners set in hibernate Configuration in HbSessionDataStore
Summary: [Hibernate] Enable eventListeners set in hibernate Configuration in HbSession...
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 08:41 EDT by Tom CLA
Modified: 2010-08-18 10:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/