<?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: Hibernate and your Getters and Setters</title>
	<atom:link href="http://www.missiondata.com/blog/java/67/hibernate-and-your-getters-and-setters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.missiondata.com/blog/software-development/67/hibernate-and-your-getters-and-setters/</link>
	<description>Louisville-based Web Development &#038; Software Engineering</description>
	<lastBuildDate>Tue, 02 Mar 2010 02:10:53 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sami Dalouche</title>
		<link>http://www.missiondata.com/blog/software-development/67/hibernate-and-your-getters-and-setters/comment-page-1/#comment-52179</link>
		<dc:creator>Sami Dalouche</dc:creator>
		<pubDate>Tue, 19 Feb 2008 21:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.missiondata.com/blog/uncategorized/67/hibernate-and-your-getters-and-setters/#comment-52179</guid>
		<description>sorry, I repeat

If you consider the DDD (Domain Driven Design) approach a good one, then
I don’t believe that breaking encapsulation really is an issue.

Indeed, if you consider that your entities constitute a rich domain, then you might not even want setters, you might want a fluent interface to set your parameters, etc..

So,  Entities can be created by factories and persisted using Repositories. I think it is way better to have stronger encapsulation on the domain and break it in the factories and repositories, instead of having a weaker encapsulation that is not broken anywhere.

So, in this direction, direct field access doesn&#039;t seem stupid</description>
		<content:encoded><![CDATA[<p>sorry, I repeat</p>
<p>If you consider the DDD (Domain Driven Design) approach a good one, then<br />
I don’t believe that breaking encapsulation really is an issue.</p>
<p>Indeed, if you consider that your entities constitute a rich domain, then you might not even want setters, you might want a fluent interface to set your parameters, etc..</p>
<p>So,  Entities can be created by factories and persisted using Repositories. I think it is way better to have stronger encapsulation on the domain and break it in the factories and repositories, instead of having a weaker encapsulation that is not broken anywhere.</p>
<p>So, in this direction, direct field access doesn&#8217;t seem stupid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: at Obscured Info</title>
		<link>http://www.missiondata.com/blog/software-development/67/hibernate-and-your-getters-and-setters/comment-page-1/#comment-16214</link>
		<dc:creator>at Obscured Info</dc:creator>
		<pubDate>Mon, 12 Mar 2007 02:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.missiondata.com/blog/uncategorized/67/hibernate-and-your-getters-and-setters/#comment-16214</guid>
		<description>[...] Over at the MD blog Darren has illustrated more dangers with Hibernate setters. [...]</description>
		<content:encoded><![CDATA[<p>[...] Over at the MD blog Darren has illustrated more dangers with Hibernate setters. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Rodriguez</title>
		<link>http://www.missiondata.com/blog/software-development/67/hibernate-and-your-getters-and-setters/comment-page-1/#comment-16213</link>
		<dc:creator>Rich Rodriguez</dc:creator>
		<pubDate>Mon, 12 Mar 2007 00:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.missiondata.com/blog/uncategorized/67/hibernate-and-your-getters-and-setters/#comment-16213</guid>
		<description>I&#039;m pretty satisfied using access=&quot;field&quot; with Hibernate. Yes, it breaks encapsulation, but it keeps you from running into these maddening bugs. I &lt;a href=&quot;http://www.obscured.info/java/my-setter-is-too-clever-or-why-hibernate-isnt-batching/&quot; rel=&quot;nofollow&quot;&gt;blogged&lt;/a&gt; a while back about how setter logic was defeating the batch load functionality in Hibernate.</description>
		<content:encoded><![CDATA[<p>I&#8217;m pretty satisfied using access=&#8221;field&#8221; with Hibernate. Yes, it breaks encapsulation, but it keeps you from running into these maddening bugs. I <a href="http://www.obscured.info/java/my-setter-is-too-clever-or-why-hibernate-isnt-batching/" rel="nofollow">blogged</a> a while back about how setter logic was defeating the batch load functionality in Hibernate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
