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
            Reporter: Sam Couter
            Assignee: Johann Reyes
         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