Results 1 to 3 of 3

Thread: Does Spring 1.2.8 work with Hibernate 3.2.0.cr2?

  1. #1
    Join Date
    Jan 2006
    Posts
    11

    Default Does Spring 1.2.8 work with Hibernate 3.2.0.cr2?

    Does Spring 1.2.8 work with Hibernate 3.2.0.cr2?, I am mapping my model layer with annotations and I wonder if I could still use Spring 1.2.8 or do I need to upgrade to Spring 2.0 -RC1 for the DAOs? Most likely I won't need Java 5 new sintax features on the DAO layer, but I was wondering if would work Spring 1.2.8 will work with Hibernate 3.2.0.cr2 as I won't be generating *.hbn.xml files.

    And also, how do I specify the mappingResources in the applicationContext? In the following sample would this:
    Code:
    my/company/model/MyClass.hbm.xml
    need to be replaced by:
    Code:
    my.company.model.MyClass
    ?
    Code:
    <property name="mappingResources">
                <list>
                  <value>my/company/model/MyClass.hbm.xml</value>
                    
                </list>
            </property>
    Is there any documentation explaining how to do it? Please let me know. Thanks!
    Last edited by seth; Jun 27th, 2006 at 02:55 PM.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    See org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean.
    Its javadoc is quite explanatory.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Jun 2006
    Posts
    18

    Arrow

    I would rather upgrade it to SPring 2.0 fo better usage.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •