<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Testing Hibernate mappings: Testing Equality</title>
	<atom:link href="http://www.markhneedham.com/blog/2008/10/29/testing-hibernate-mappings-testing-equality/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2008/10/29/testing-hibernate-mappings-testing-equality/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Testing Hibernate mappings: Setting up test data at Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2008/10/29/testing-hibernate-mappings-testing-equality/comment-page-1/#comment-1131</link>
		<dc:creator>Testing Hibernate mappings: Setting up test data at Mark Needham</dc:creator>
		<pubDate>Tue, 04 Nov 2008 11:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=556#comment-1131</guid>
		<description>[...] How to test for equality? [...]</description>
		<content:encoded><![CDATA[<p>[...] How to test for equality? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Kemper</title>
		<link>http://www.markhneedham.com/blog/2008/10/29/testing-hibernate-mappings-testing-equality/comment-page-1/#comment-1064</link>
		<dc:creator>Kris Kemper</dc:creator>
		<pubDate>Sat, 01 Nov 2008 22:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=556#comment-1064</guid>
		<description>I agree that equality for persisted domain objects should be based on identity and not values. The primary key and class type is usually all you need to do this.

Now, value equality does come in handy. I tend to implement a valuesEquals() method for this, and use something like the Apache Commons equals builder (in java) so that I&#039;m not writing reflection code myself.</description>
		<content:encoded><![CDATA[<p>I agree that equality for persisted domain objects should be based on identity and not values. The primary key and class type is usually all you need to do this.</p>
<p>Now, value equality does come in handy. I tend to implement a valuesEquals() method for this, and use something like the Apache Commons equals builder (in java) so that I&#8217;m not writing reflection code myself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

