[ 
http://jira.codehaus.org/browse/MHIBERNATE-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johann Reyes closed MHIBERNATE-65.
----------------------------------

    Resolution: Won't Fix

Thanks for the patch. The problem I see is that only works for configuration. 
For other type of configurations wouldn't work, so I wrote an example that 
shows how the integration can work. You can see it here: 
http://svn.codehaus.org/mojo/trunk/sandbox/hibernate3-maven-plugin/src/it/mhibernate-65/

> Add a configuration component to use Spring
> -------------------------------------------
>
>                 Key: MHIBERNATE-65
>                 URL: http://jira.codehaus.org/browse/MHIBERNATE-65
>             Project: Maven 2.x Hibernate Plugin
>          Issue Type: New Feature
>          Components: hbm2ddl, hbm2java
>            Reporter: Sam Couter
>            Assignee: Johann Reyes
>             Fix For: 3.0
>
>         Attachments: spring.patch
>
>
> I'm using [Spring|http://www.springframework.org/] to configure Hibernate in 
> my project. I'm getting pretty tired of duplicating parts of the 
> configuration into a {{hibernate.cfg.xml}} that's used only for running the 
> {{hbm2ddl}} goal.
> So far it's just been a list of annotated classes which isn't too bad, but 
> now I'm starting to use custom {{UserType}} classes.
> Attached is a small and simple patch:
> - Add dependency on {{spring-hibernate3}}
> - Add {{SpringComponentConfiguration}} class to configure a Spring bean 
> factory and get a Hibernate {{Configuration}} from it.
> - Extend unit tests to exercise {{SpringComponentConfiguration}}.
> - List new configuration component in the components page on the web site, 
> for the {{hbm2ddl}} and {{hbm2java}} goals.
> The {{SpringComponentConfiguration}} only supports the {{hbm2ddl}} and 
> {{hbm2java}} goals and I don't really see this changing without a lot of work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to