Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.0.13
-
None
Description
when the DefaultHibernateConfigurer is calling configuration.configure() Hibernate will try to initialize the SessionFactory using a hibernate.cfg.xml file from the root classpath. there are two problems to this approach: 1) you always have to have a (dummy) hibernate.cfg.xml file in your root classpath and 2) you have to contribute another HibernateConfigurer ("after:Default") that will call configuration.configure("myhibernate.cfg.xml") to override the first call.
Therefore i'd suggest to make the DefaultHibernateConfigurer exchangeable by defining it as IOC service. this would make it possible to define an own DefaultHibernateConfigurer using the Alias service.