Results 1 to 5 of 5

Thread: Spring and Hibernate3

  1. #1
    Join Date
    Jan 2005
    Posts
    6

    Default 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. #2
    Join Date
    Jan 2005
    Posts
    2

    Default

    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

  3. #3
    Join Date
    Jan 2005
    Posts
    6

    Default

    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

  4. #4
    Join Date
    Jan 2005
    Posts
    2

    Default

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

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

    apha92

  5. #5
    Join Date
    Jan 2005
    Posts
    6

    Default

    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

Similar Threads

  1. Replies: 6
    Last Post: Sep 2nd, 2005, 05:03 AM
  2. Replies: 0
    Last Post: May 20th, 2005, 02:14 PM
  3. Upgrade to Hibernate3 - Spring 1.2
    By maniestaloca in forum Data
    Replies: 11
    Last Post: Apr 22nd, 2005, 05:46 AM
  4. Replies: 1
    Last Post: Apr 16th, 2005, 12:10 PM
  5. Replies: 5
    Last Post: Sep 2nd, 2004, 12:03 PM

Posting Permissions

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