<?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: First real-world experience with Grails</title>
	<atom:link href="http://thebull.macsimumweb.com/first-real-world-experience-with-grails/feed" rel="self" type="application/rss+xml" />
	<link>http://thebull.macsimumweb.com/first-real-world-experience-with-grails</link>
	<description>Thoughts on poker, programming and other stuff.</description>
	<lastBuildDate>Thu, 09 Sep 2010 10:25:52 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: glen gorm</title>
		<link>http://thebull.macsimumweb.com/first-real-world-experience-with-grails/comment-page-1#comment-9740</link>
		<dc:creator>glen gorm</dc:creator>
		<pubDate>Fri, 11 Jul 2008 18:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://thebull.macsimumweb.com/first-real-world-experience-with-grails/#comment-9740</guid>
		<description>[...] I was going to build this application with Rails for the same reason, even deploy it on Glassfish whttp://thebull.macsimumweb.com/first-real-world-experience-with-grails/Glengorm Estate, Isle of Mull Highland Cattle Blackface sheepGlengorm currently has around 60 [...]</description>
		<content:encoded><![CDATA[<p>[...] I was going to build this application with Rails for the same reason, even deploy it on Glassfish whttp://thebull.macsimumweb.com/first-real-world-experience-with-grails/Glengorm Estate, Isle of Mull Highland Cattle Blackface sheepGlengorm currently has around 60 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Bull</title>
		<link>http://thebull.macsimumweb.com/first-real-world-experience-with-grails/comment-page-1#comment-8249</link>
		<dc:creator>The Bull</dc:creator>
		<pubDate>Thu, 05 Jun 2008 01:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://thebull.macsimumweb.com/first-real-world-experience-with-grails/#comment-8249</guid>
		<description>Not to beat a dead horse here, but again that works great for the &lt;b&gt;root&lt;/b&gt; object, not an object down the graph. In my case I didn&#039;t care what the ID generator was (using the default long). It wouldn&#039;t load the object no matter what method I tried, at least not directly. I would have to do something like company.employees[0] to get the employee reference back.

More of an annoyance than anything else.</description>
		<content:encoded><![CDATA[<p>Not to beat a dead horse here, but again that works great for the <b>root</b> object, not an object down the graph. In my case I didn&#8217;t care what the ID generator was (using the default long). It wouldn&#8217;t load the object no matter what method I tried, at least not directly. I would have to do something like company.employees[0] to get the employee reference back.</p>
<p>More of an annoyance than anything else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres Almiray</title>
		<link>http://thebull.macsimumweb.com/first-real-world-experience-with-grails/comment-page-1#comment-8247</link>
		<dc:creator>Andres Almiray</dc:creator>
		<pubDate>Wed, 04 Jun 2008 23:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://thebull.macsimumweb.com/first-real-world-experience-with-grails/#comment-8247</guid>
		<description>Because DomainBuilder extends from ObjectGraphBuilder you may be able to use a reference, like it is shown in the following example

def company = builder.company( name: &#039;ACME&#039; ) {
   address( id: &#039;a1&#039;, line1: &#039;123 Groovy Rd&#039;, zip: 12345, state: &#039;JV&#039; )
   employee(  name: &#039;Duke&#039;, employeeId: 1 ){
      address( refId: &#039;a1&#039; )
   }
}

Because in Grails id is a valid property that has a meaning other than a reference, you may assign a different id strategy on the builder, something like &#039;uuid&#039; instead of &#039;id&#039;, you just need to provide an IdentityResolver/ReferenceResolver pair and you&#039;re in business

http://groovy.codehaus.org/ObjectGraphBuilder</description>
		<content:encoded><![CDATA[<p>Because DomainBuilder extends from ObjectGraphBuilder you may be able to use a reference, like it is shown in the following example</p>
<p>def company = builder.company( name: &#8216;ACME&#8217; ) {<br />
   address( id: &#8216;a1&#8242;, line1: &#8216;123 Groovy Rd&#8217;, zip: 12345, state: &#8216;JV&#8217; )<br />
   employee(  name: &#8216;Duke&#8217;, employeeId: 1 ){<br />
      address( refId: &#8216;a1&#8242; )<br />
   }<br />
}</p>
<p>Because in Grails id is a valid property that has a meaning other than a reference, you may assign a different id strategy on the builder, something like &#8216;uuid&#8217; instead of &#8216;id&#8217;, you just need to provide an IdentityResolver/ReferenceResolver pair and you&#8217;re in business</p>
<p><a href="http://groovy.codehaus.org/ObjectGraphBuilder" rel="nofollow">http://groovy.codehaus.org/ObjectGraphBuilder</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Bull</title>
		<link>http://thebull.macsimumweb.com/first-real-world-experience-with-grails/comment-page-1#comment-8166</link>
		<dc:creator>The Bull</dc:creator>
		<pubDate>Tue, 03 Jun 2008 17:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://thebull.macsimumweb.com/first-real-world-experience-with-grails/#comment-8166</guid>
		<description>That works fine for building a graph, but where I ran into trouble would be when I needed to pull out an employee (to use their example) and apply it to something else. Calling something like Employee.findByEmail(&#039;blah&#039;) would return null, even that I added them.</description>
		<content:encoded><![CDATA[<p>That works fine for building a graph, but where I ran into trouble would be when I needed to pull out an employee (to use their example) and apply it to something else. Calling something like Employee.findByEmail(&#8217;blah&#8217;) would return null, even that I added them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitriy Kopylenko</title>
		<link>http://thebull.macsimumweb.com/first-real-world-experience-with-grails/comment-page-1#comment-8165</link>
		<dc:creator>Dmitriy Kopylenko</dc:creator>
		<pubDate>Tue, 03 Jun 2008 17:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://thebull.macsimumweb.com/first-real-world-experience-with-grails/#comment-8165</guid>
		<description>Check out Grails DomainBuilder:

http://grails.org/DomainBuilder</description>
		<content:encoded><![CDATA[<p>Check out Grails DomainBuilder:</p>
<p><a href="http://grails.org/DomainBuilder" rel="nofollow">http://grails.org/DomainBuilder</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
