<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Morphic Group &#187; AMF</title>
	<atom:link href="http://www.themorphicgroup.com/blog/tag/amf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.themorphicgroup.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 22 Feb 2010 18:20:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Google App Engine Text Datastore Object not Saving with AMF</title>
		<link>http://www.themorphicgroup.com/blog/2009/07/02/google-app-engine-text-datastore-object-not-saving-with-amf/</link>
		<comments>http://www.themorphicgroup.com/blog/2009/07/02/google-app-engine-text-datastore-object-not-saving-with-amf/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:01:43 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[AMF]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[granite ds]]></category>

		<guid isPermaLink="false">http://www.themorphicgroup.com/blog/?p=162</guid>
		<description><![CDATA[I've been working with creating a Flex app with Google App Engine and AMF based on Sekhar Ravinutala's blog post about using GraniteDS and the new Java framework for GAE. Everything was going smoothly until I needed to use a datastore Text object instead of a standard string property because a string can only contain 500 [...]]]></description>
			<content:encoded><![CDATA[<p>I've been working with creating a Flex app with Google App Engine and AMF based on Sekhar Ravinutala's blog <a href="http://blog.allurefx.com/2009/05/cloud-to-ria-accessing-google-app_26.html">post</a> about using GraniteDS and the new Java framework for GAE. Everything was going smoothly until I needed to use a datastore Text object instead of a standard string property because a string can only contain 500 characters. Anytime I would save my item class to the datastore the text property would always come back null on subsequent requests to retrieve the item from the database. Turns out all you have to do is add the following line above your text property's declaration like so:</p>
<p>@Persistent(defaultFetchGroup="true")<br />
Text description;</p>
<p>I was able to find this solution in a Google groups thread <a href="http://groups.google.com/group/google-appengine-java/msg/ac94665af70cf61a">here</a>. Apparently, for optimization reasons not all fields are retrieved when an object is requested from the database. With the line of code above, we force the description property to be retrieved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.themorphicgroup.com/blog/2009/07/02/google-app-engine-text-datastore-object-not-saving-with-amf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
