Menu

Would like to donate some changes

eladm
2005-08-11
2013-03-22
  • eladm

    eladm - 2005-08-11

    Hello
       I have just found out about CodeSugar and started using it because I am using Hibernate, where equals and hashCode are very important.
       However - I had to perform some changes in the CodeSugar code so that it will work with Hibernate.

       The changes I have made are :
       1. in the equals method - change .getClass() comparison to "intanceof" comparison (only way to compare in Hibernate).
       2. Instead of comparing this.prop to o.prop , compare this.prop to o.getProp() - only if the "get" method is available (This is also the only way to compare in Hibernate).

       My question is - should I donate my changed code to the CVS ? It seems the last version is from 2003, so I thought maybe the project is not updated anymore..

    Thank you !

    Elad

     
    • Miguel Griffa

      Miguel Griffa - 2005-08-11

      It's great news, If you'd like to contribute the code I'd ask you to send me patch to the latest version from CVS. A lot of people uses this for hibernate, so I think is quite good news.

       
      • eladm

        eladm - 2005-08-11

        Ok.Just sent you a mail with the changed file.
        Thanks

         
        • eladm

          eladm - 2005-08-16

          MIkkey , did you receive my mail ?

           
          • Miguel Griffa

            Miguel Griffa - 2005-08-16

            yes, I'm sorry I haven't reviewed yet, I'm extremly busy now

             

Log in to post a comment.

MongoDB Logo MongoDB