You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/09/08 23:25:44 UTC

[jira] Updated: (TAPESTRY-2458) Refactor DefaultHibernateConfigurer as an IOC service for easier overriding

     [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org