<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Pulling internationalized content from a database</title>
	<link>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/</link>
	<description>JSF tutorials, news, and other useful resources.</description>
	<pubDate>Wed, 03 Dec 2008 20:54:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Rodolfo</title>
		<link>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-22</link>
		<pubDate>Wed, 06 Dec 2006 23:49:16 +0000</pubDate>
		<guid>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-22</guid>
					<description>soryy, being tired.
change in the last post %gt;%gt   to    &amp;#62;&amp;#62;</description>
		<content:encoded><![CDATA[<p>soryy, being tired.<br />
change in the last post %gt;%gt   to    &gt;&gt;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rodolfo</title>
		<link>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-21</link>
		<pubDate>Wed, 06 Dec 2006 23:47:46 +0000</pubDate>
		<guid>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-21</guid>
					<description>AHA! Looking at my last  comment I see that 
your blog-comment-software destroyed my proposed change (so probably yours too).

I use &amp;#60; and &amp;#62; now:

public   Set&amp;#60;Map.Entry&amp;#60;String, String%gt;%gt entrySet(){

Maybe this works.

Rodolfo</description>
		<content:encoded><![CDATA[<p>AHA! Looking at my last  comment I see that<br />
your blog-comment-software destroyed my proposed change (so probably yours too).</p>
<p>I use &lt; and &gt; now:</p>
<p>public   Set&lt;Map.Entry&lt;String, String%gt;%gt entrySet(){</p>
<p>Maybe this works.</p>
<p>Rodolfo
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rodolfo</title>
		<link>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-20</link>
		<pubDate>Wed, 06 Dec 2006 23:43:21 +0000</pubDate>
		<guid>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-20</guid>
					<description>Hi Spencer,
I still do not get it to compile.

I tried to change your line

public Set&amp;#62; entrySet() {

to 

public   Set&amp;#62; entrySet(){

but probably this is not correct (though the IDE claims that this is a valid implementation of entrySet )
--

Could you maybe post a Netbeans (or Eclipse)-importable project ?
Maybe I do something wrong with the package-file-layout.

Sorry, I am just not so experienced.

Rodolfo</description>
		<content:encoded><![CDATA[<p>Hi Spencer,<br />
I still do not get it to compile.</p>
<p>I tried to change your line</p>
<p>public Set&gt; entrySet() {</p>
<p>to </p>
<p>public   Set&gt; entrySet(){</p>
<p>but probably this is not correct (though the IDE claims that this is a valid implementation of entrySet )<br />
&#8211;</p>
<p>Could you maybe post a Netbeans (or Eclipse)-importable project ?<br />
Maybe I do something wrong with the package-file-layout.</p>
<p>Sorry, I am just not so experienced.</p>
<p>Rodolfo
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: suresk</title>
		<link>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-19</link>
		<pubDate>Sat, 02 Dec 2006 00:15:30 +0000</pubDate>
		<guid>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-19</guid>
					<description>Hi Rodolfo,

My apologies: When I adapted my code for this tutorial, I didn't setup the IdClass properly.

The tutorial is updated now, but basically you need to define the ContentKey class and then annotate the Content entity with @IdClass(ContentKey.class).

- Spencer</description>
		<content:encoded><![CDATA[<p>Hi Rodolfo,</p>
<p>My apologies: When I adapted my code for this tutorial, I didn&#8217;t setup the IdClass properly.</p>
<p>The tutorial is updated now, but basically you need to define the ContentKey class and then annotate the Content entity with @IdClass(ContentKey.class).</p>
<p>- Spencer
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rodolfo</title>
		<link>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-18</link>
		<pubDate>Fri, 01 Dec 2006 23:49:43 +0000</pubDate>
		<guid>http://www.jsf-resources.com/2006/11/11/pulling-internationalized-content-from-a-database/#comment-18</guid>
					<description>This looks all very interesting, but I cannot get it to work.
E.g. Netbeans (and Spring-Version: 2.0.1 )
does not like multiple Id, it says:
&quot;There are multiple IDs in this entity class, but no 
IDclass is defined&quot;

So if I remove the second ID annotation here:

 @Id  
 private String key;  
 @Id  
 private String locale; 

the error message goes away.

I am new to persistence and annotations etc.
I just want to have a database-backend-multilingual 
nonresource-bundl setup (like I have seen it in the PHP world).

Could you elaborate or post some sample .war file or something like that?

Thanx,

Rodolfo</description>
		<content:encoded><![CDATA[<p>This looks all very interesting, but I cannot get it to work.<br />
E.g. Netbeans (and Spring-Version: 2.0.1 )<br />
does not like multiple Id, it says:<br />
&#8220;There are multiple IDs in this entity class, but no<br />
IDclass is defined&#8221;</p>
<p>So if I remove the second ID annotation here:</p>
<p> @Id<br />
 private String key;<br />
 @Id<br />
 private String locale; </p>
<p>the error message goes away.</p>
<p>I am new to persistence and annotations etc.<br />
I just want to have a database-backend-multilingual<br />
nonresource-bundl setup (like I have seen it in the PHP world).</p>
<p>Could you elaborate or post some sample .war file or something like that?</p>
<p>Thanx,</p>
<p>Rodolfo
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
