[
https://issues.apache.org/jira/browse/TAPESTRY-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship updated TAPESTRY-2458:
-------------------------------------------
Summary: Refactor DefaultHibernateConfigurer as an IOC service for easier
overriding (was: define DefaultHibernateConfigurer as IOC service for easier
override)
> Refactor DefaultHibernateConfigurer as an IOC service for easier overriding
> ---------------------------------------------------------------------------
>
> Key: TAPESTRY-2458
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2458
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-hibernate
> Affects Versions: 5.0.13
> Reporter: Kristian Marinkovic
> Priority: Minor
> Fix For: 5.0.15
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]