<?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: State Pattern Persistence with Hibernate</title>
	<atom:link href="http://nerdboys.com/2007/06/08/state-pattern-persistence-with-hibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://nerdboys.com/2007/06/08/state-pattern-persistence-with-hibernate/</link>
	<description>Tech tips, news and reviews</description>
	<lastBuildDate>Mon, 26 Jul 2010 18:35:21 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: ilizhe</title>
		<link>http://nerdboys.com/2007/06/08/state-pattern-persistence-with-hibernate/comment-page-1/#comment-109</link>
		<dc:creator>ilizhe</dc:creator>
		<pubDate>Mon, 15 Sep 2008 08:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://jojosoho.com/?p=33#comment-109</guid>
		<description>i got something useful from your blog. thank u</description>
		<content:encoded><![CDATA[<p>i got something useful from your blog. thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://nerdboys.com/2007/06/08/state-pattern-persistence-with-hibernate/comment-page-1/#comment-108</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 21 Aug 2008 08:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://jojosoho.com/?p=33#comment-108</guid>
		<description>org.hibernate.MappingException: Could not determine type for: OrderStateUserType&lt;br/&gt;&lt;br/&gt;where i have put OrderStateUserType when i have complicate structure?</description>
		<content:encoded><![CDATA[<p>org.hibernate.MappingException: Could not determine type for: OrderStateUserType</p>
<p>where i have put OrderStateUserType when i have complicate structure?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Campbell</title>
		<link>http://nerdboys.com/2007/06/08/state-pattern-persistence-with-hibernate/comment-page-1/#comment-107</link>
		<dc:creator>Campbell</dc:creator>
		<pubDate>Mon, 17 Mar 2008 09:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://jojosoho.com/?p=33#comment-107</guid>
		<description>Hi Joe. I too found this a useful piece based on attempting to implement the State Pattern from the book with the nice girl on the cover :O)&lt;br/&gt;&lt;br/&gt;The problem I could not crack was the fact the pattern actually instantiates the states within the entity and passes a &#039;this&#039; reference in to each state constructor. &lt;br/&gt;&lt;br/&gt;You provide an alternative which is to pass the entity reference (e.g. Customer) in to the action method (e.g activate). A nice touch but I wish to retain the original pattern  structure since it is cleaner for my requirement: my different states sometimes transition the entity state bit sometimes do not require to do so.&lt;br/&gt;&lt;br/&gt;I cannot see any way to use Hibernate UserType to retain the exact pattern implementation but let me know if you think otherwise.&lt;br/&gt;&lt;br/&gt;Cheers, Cam</description>
		<content:encoded><![CDATA[<p>Hi Joe. I too found this a useful piece based on attempting to implement the State Pattern from the book with the nice girl on the cover :O)</p>
<p>The problem I could not crack was the fact the pattern actually instantiates the states within the entity and passes a &#8216;this&#8217; reference in to each state constructor. </p>
<p>You provide an alternative which is to pass the entity reference (e.g. Customer) in to the action method (e.g activate). A nice touch but I wish to retain the original pattern  structure since it is cleaner for my requirement: my different states sometimes transition the entity state bit sometimes do not require to do so.</p>
<p>I cannot see any way to use Hibernate UserType to retain the exact pattern implementation but let me know if you think otherwise.</p>
<p>Cheers, Cam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://nerdboys.com/2007/06/08/state-pattern-persistence-with-hibernate/comment-page-1/#comment-106</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 01 Feb 2008 04:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://jojosoho.com/?p=33#comment-106</guid>
		<description>Thanks for dropping by my blog.&lt;br/&gt;&lt;br/&gt;&gt; the EJB3 world is all a bit &lt;br/&gt;&gt; new to most of the&lt;br/&gt;&gt; development team &lt;br/&gt;&lt;br/&gt;Hehe, just be thankful they don&#039;t have to learn EJB2!</description>
		<content:encoded><![CDATA[<p>Thanks for dropping by my blog.</p>
<p>> the EJB3 world is all a bit <br />> new to most of the<br />> development team </p>
<p>Hehe, just be thankful they don&#8217;t have to learn EJB2!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
