<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2260432230294560411.post432370996022554123..comments</id><updated>2009-10-14T07:57:44.091-07:00</updated><title type='text'>Comments on SpringFuse: Testing various equals and hashCode strategies</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.springfuse.com/feeds/432370996022554123/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default'/><link rel='alternate' type='text/html' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html'/><author><name>SpringFuse</name><uri>http://www.blogger.com/profile/04653245696562919376</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2260432230294560411.post-61509444221000504</id><published>2009-10-14T07:57:44.292-07:00</published><updated>2009-10-14T07:57:44.292-07:00</updated><title type='text'>The equals contract states that when a property th...</title><content type='html'>The equals contract states that when a property that is not used in the equals method changes, the equals result must not change.&lt;br /&gt;In our example, the favoriteColor is not used in the equals strategy.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default/61509444221000504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default/61509444221000504'/><link rel='alternate' type='text/html' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html?showComment=1255532264292#c61509444221000504' title=''/><author><name>Nicolas Romanetti</name><uri>http://www.blogger.com/profile/05565454367789935015</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07597243599871877932'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html' ref='tag:blogger.com,1999:blog-2260432230294560411.post-432370996022554123' source='http://www.blogger.com/feeds/2260432230294560411/posts/default/432370996022554123' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-2260432230294560411.post-8376816951736148251</id><published>2009-10-13T11:27:01.515-07:00</published><updated>2009-10-13T11:27:01.515-07:00</updated><title type='text'>Interesting, but I am missing something in your te...</title><content type='html'>Interesting, but I am missing something in your tests: how is red equal to blue??&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve not thought about the Hibernate issues you mentioned, but I have overriden equals() and hashCode for proper collections behavior. I used the Apache Commons builder classes. I generally try for equality of significant properties in POJOs and so far it seems to work fine.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default/8376816951736148251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default/8376816951736148251'/><link rel='alternate' type='text/html' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html?showComment=1255458421515#c8376816951736148251' title=''/><author><name>Developer Dude</name><uri>http://www.blogger.com/profile/01475883843077887466</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html' ref='tag:blogger.com,1999:blog-2260432230294560411.post-432370996022554123' source='http://www.blogger.com/feeds/2260432230294560411/posts/default/432370996022554123' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-2260432230294560411.post-5585527789962130873</id><published>2009-10-13T08:37:48.573-07:00</published><updated>2009-10-13T08:37:48.573-07:00</updated><title type='text'>nice post!!! and very usefull!!</title><content type='html'>nice post!!! and very usefull!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default/5585527789962130873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2260432230294560411/432370996022554123/comments/default/5585527789962130873'/><link rel='alternate' type='text/html' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html?showComment=1255448268573#c5585527789962130873' title=''/><author><name>Victor Panizza</name><uri>http://www.blogger.com/profile/13791852820572777518</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.springfuse.com/2009/10/testing-various-equals-and-hashcode_3597.html' ref='tag:blogger.com,1999:blog-2260432230294560411.post-432370996022554123' source='http://www.blogger.com/feeds/2260432230294560411/posts/default/432370996022554123' type='text/html'/></entry></feed>