<?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 Annotations for a One-To-Many Mapping Featuring a Many Side, Composite, Primary Key having a Composite, Foreign, Sub-Key</title>
	<atom:link href="http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/feed/" rel="self" type="application/rss+xml" />
	<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/</link>
	<description>Delivering Results in Application Development</description>
	<lastBuildDate>Tue, 12 Jul 2011 12:24:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rakesh</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-734</link>
		<dc:creator>Rakesh</dc:creator>
		<pubDate>Tue, 12 Jul 2011 12:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-734</guid>
		<description>Hi 
I am getting below error at  

 @ManyToOne
 Parent parentForeignKey;

in ChildPrimaryKey class
Attribute &quot;parentForeignKey&quot; has invalid mapping type in this context</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am getting below error at  </p>
<p> @ManyToOne<br />
 Parent parentForeignKey;</p>
<p>in ChildPrimaryKey class<br />
Attribute &#8220;parentForeignKey&#8221; has invalid mapping type in this context</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martykube</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-723</link>
		<dc:creator>martykube</dc:creator>
		<pubDate>Fri, 20 May 2011 00:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-723</guid>
		<description>Hi,
Sure, I am always looking for good content.  What do you have in mind?
Marty</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Sure, I am always looking for good content.  What do you have in mind?<br />
Marty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marisha Sorzano</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-722</link>
		<dc:creator>Marisha Sorzano</dc:creator>
		<pubDate>Tue, 10 May 2011 12:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-722</guid>
		<description>My partner and I absolutely love your blog and find almost all of your post&#039;s to be just what I&#039;m looking for. can you offer guest writers to write content for you personally? I wouldn&#039;t mind writing a post or elaborating on most of the subjects you write regarding here. Again, awesome website!</description>
		<content:encoded><![CDATA[<p>My partner and I absolutely love your blog and find almost all of your post&#8217;s to be just what I&#8217;m looking for. can you offer guest writers to write content for you personally? I wouldn&#8217;t mind writing a post or elaborating on most of the subjects you write regarding here. Again, awesome website!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harshit</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-657</link>
		<dc:creator>Harshit</dc:creator>
		<pubDate>Wed, 23 Mar 2011 17:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-657</guid>
		<description>Hi,
 Thanks for the article.. It works and help in understanding adding foreign key ...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 Thanks for the article.. It works and help in understanding adding foreign key &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martykube</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-447</link>
		<dc:creator>martykube</dc:creator>
		<pubDate>Wed, 12 Jan 2011 01:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-447</guid>
		<description>Hi Abaile,
Thanks for the input - that makes a lot of sense.  I developed this example against a small database and didn&#039;t notice that the eager fetch sucked in the whole DB!
Marty</description>
		<content:encoded><![CDATA[<p>Hi Abaile,<br />
Thanks for the input &#8211; that makes a lot of sense.  I developed this example against a small database and didn&#8217;t notice that the eager fetch sucked in the whole DB!<br />
Marty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abaile</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-445</link>
		<dc:creator>abaile</dc:creator>
		<pubDate>Tue, 11 Jan 2011 16:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-445</guid>
		<description>I had the same StackOerflowError problem. It was do to the hql pulling neer ending rows for some reason. To solve this, take the fetch=FetchType.EAGER out of the Parent Class @OneToMany annotation. This fixed it for me and was still pulling the right rows.</description>
		<content:encoded><![CDATA[<p>I had the same StackOerflowError problem. It was do to the hql pulling neer ending rows for some reason. To solve this, take the fetch=FetchType.EAGER out of the Parent Class @OneToMany annotation. This fixed it for me and was still pulling the right rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-253</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Tue, 02 Nov 2010 19:43:22 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-253</guid>
		<description>Fantastic post, the only example of this I&#039;ve been able to find. 

I&#039;ve implemented this in my code, and loading by primary key, inserting, and deleting are all working great. 

When I try to get hibernate to return more than a single record however, I get a StackOverflowError.

I&#039;ve tried everything I can think of, any help would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>Fantastic post, the only example of this I&#8217;ve been able to find. </p>
<p>I&#8217;ve implemented this in my code, and loading by primary key, inserting, and deleting are all working great. </p>
<p>When I try to get hibernate to return more than a single record however, I get a StackOverflowError.</p>
<p>I&#8217;ve tried everything I can think of, any help would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar.MS</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-142</link>
		<dc:creator>Edgar.MS</dc:creator>
		<pubDate>Wed, 09 Sep 2009 14:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-142</guid>
		<description>Hi again, the error was very foolish.

I was defined a List from org.hibernate.mapping.List instead of java.util.List, when I changed this import the example worked fine.

Sorry &amp; Thanks.</description>
		<content:encoded><![CDATA[<p>Hi again, the error was very foolish.</p>
<p>I was defined a List from org.hibernate.mapping.List instead of java.util.List, when I changed this import the example worked fine.</p>
<p>Sorry &amp; Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martykube</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-141</link>
		<dc:creator>martykube</dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-141</guid>
		<description>Hi Edgar,

What type of list do you have in the parent class?  My searching has shown two cases where this exception pops up.   
1) When the collection is a user defined type
2) When you should be using a set instead of a list

HTH,
Marty</description>
		<content:encoded><![CDATA[<p>Hi Edgar,</p>
<p>What type of list do you have in the parent class?  My searching has shown two cases where this exception pops up.<br />
1) When the collection is a user defined type<br />
2) When you should be using a set instead of a list</p>
<p>HTH,<br />
Marty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar.MS</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-140</link>
		<dc:creator>Edgar.MS</dc:creator>
		<pubDate>Wed, 09 Sep 2009 11:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-140</guid>
		<description>Hi, I&#039;m other Edgar.

I was following this example and I have a problem with the list in the parent class. The error is &quot; Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements &quot;.

Do you know this error and why I have it ??

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m other Edgar.</p>
<p>I was following this example and I have a problem with the list in the parent class. The error is &#8221; Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements &#8220;.</p>
<p>Do you know this error and why I have it ??</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-137</link>
		<dc:creator>Edgar</dc:creator>
		<pubDate>Wed, 24 Jun 2009 03:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-137</guid>
		<description>Thanks so much for this post.  I was working with a case of a composite-key that contained a foreign-key.  No doubt it would have taken a lot longer to figure out if you hadn&#039;t spent the time to do this write-up.  Thanks for your time and the excellent details.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this post.  I was working with a case of a composite-key that contained a foreign-key.  No doubt it would have taken a lot longer to figure out if you hadn&#8217;t spent the time to do this write-up.  Thanks for your time and the excellent details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarjei</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-91</link>
		<dc:creator>Tarjei</dc:creator>
		<pubDate>Thu, 29 Jan 2009 12:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-91</guid>
		<description>Thanks for the nice writeup. I used it for a simple case of one table with a composite key. 

In my experience, it is then better to use the @IdClass annotation. This may be worth knowing for people (like me) who dropped by this post and just needed composite keys. 

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the nice writeup. I used it for a simple case of one table with a composite key. </p>
<p>In my experience, it is then better to use the @IdClass annotation. This may be worth knowing for people (like me) who dropped by this post and just needed composite keys. </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://beavercreekconsulting.com/blog/2008/10/hibernate-annotations-for-a-one-to-many-mapping/comment-page-1/#comment-71</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Sun, 16 Nov 2008 18:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://beavercreekconsulting.com/blog/?p=13#comment-71</guid>
		<description>In first time, thanks a lot for this post. 

I would like to know as I make a search using &quot;criteria by example&quot; passing a specific primary key ?

Thank you more one time.</description>
		<content:encoded><![CDATA[<p>In first time, thanks a lot for this post. </p>
<p>I would like to know as I make a search using &#8220;criteria by example&#8221; passing a specific primary key ?</p>
<p>Thank you more one time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

