Announcement Announcement Module
Collapse
No announcement yet.
Spring and Hibernate3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring and Hibernate3

    hi


    i found several posts concerning hibernate3 and spring and also i found the jira entry with the pathes from Artur.
    i have troubles to get hibernate3 support running because i can not compile the code from the jira patches. there are unimplemented abstract methods

    - HibernateTransactionObject (missing isRollbackOnly())
    - BlobByteArrayType (missing hashCode() and replace())
    - ClobStringType (missing hashCode and replace())


    what am i doing wrong ?
    what am i missing ?
    what version of the patch, what version of hibernate and what version of spring do i need to use ?


    thanks for your hints and a happy 2005.

    pascal

  • #2
    Hello,

    1 / copy method isRollbackOnly() FROM org.springframework.orm.hibernate.HibernateTransac tionManager TO

    org.springframework.orm.hibernate3.HibernateTransa ctionObject

    2/ copy method hashCode() and replace() FROM org.hibernate.usertype.UserType TO class AbstractLobType ( org.springframework.orm.hibernate3.support.Abstrac tLobType )

    rebuilld

    happy 2005

    Comment


    • #3
      hi apha

      thanks for your reply. i found the isRollbackOnly() method but im not sure where to get hashCode() and replace() from.
      org.hibernate.usertype.UserType is a Interface but i need the implementations of the replace() and hashCode() method. so where did you get the implementations from ? im not sure about how to implement hashCode and replace myself since i never wrote a usertype...

      see also this issue:
      http://opensource.atlassian.com/proj...browse/SPR-300
      i'm having the same problem...

      here is what i did:
      - grabbed latest spring
      - copied source files from spring-hibernate3-final.tgz (see above issue) to spring source
      - added hibernate 3 libs
      - compiled
      - got 5 errors because of missing methods



      cheers

      pascal

      Comment


      • #4
        hi,
        Hibernate3 beta1
        you can go to this link to see declaration

        http://cvs.sourceforge.net/viewcvs.p...a1&view=markup

        apha92

        Comment


        • #5
          now at least i understand why it never compiled ....

          replace() and hashCode() were added to UserType after the hibernate3/spring patch was written.


          should have checked the hibernate CVS before...thanks for your help.


          pascal

          Comment

          Working...
          X