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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
Ok.Just sent you a mail with the changed file.
Thanks
MIkkey , did you receive my mail ?
yes, I'm sorry I haven't reviewed yet, I'm extremly busy now