We need to create a customer event listener. In this listener, we need to get some customer setting properties from persistent.xml. In hibernate 3.x.x, there is a interface org.hibernate.event.Initializable which allow us to get hold of the hibernate cfg object which we can get those values from persistent.xml.
Ever since we upgrade the hibernate from 3.6.8 to 4.0.0.RC7, this interface is dropped from the system.
We would like to know if there is a way to allow us to get hold of the hibernate cfg object in listener and do what we ware doing.
Thanks
|