<?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: Understanding org.hibernate.TransientObjectException: object references an unsaved transient instance &#8211; save the transient instance before flushing:</title>
	<atom:link href="http://www.reverttoconsole.com/blog/exceptions/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reverttoconsole.com/blog/hibernate-jpa/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/</link>
	<description>for f in *;do echo &#124; sed &#039;i\rtc&#039; &#62;&#62; $f;done; java programming et al</description>
	<lastBuildDate>Thu, 19 Jan 2012 04:32:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Priyatam</title>
		<link>http://www.reverttoconsole.com/blog/hibernate-jpa/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/comment-page-1/#comment-35761</link>
		<dc:creator>Priyatam</dc:creator>
		<pubDate>Tue, 14 Sep 2010 15:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/?p=217#comment-35761</guid>
		<description>What is your persist/save operation? It&#039;s not clear why getConditionalCriterias() is creating a new set every time. Also, while adding a new object to a collection, make sure you are setting the object references both ways. See addBar() method above.</description>
		<content:encoded><![CDATA[<p>What is your persist/save operation? It&#8217;s not clear why getConditionalCriterias() is creating a new set every time. Also, while adding a new object to a collection, make sure you are setting the object references both ways. See addBar() method above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.reverttoconsole.com/blog/hibernate-jpa/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/comment-page-1/#comment-35548</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Mon, 13 Sep 2010 17:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://reverttoconsole.com/?p=217#comment-35548</guid>
		<description>Hi,
I have a case similar to the above, but even with the cascade set to ALL, i still have the same error. Do you have any other ideas about this? 

My getter method looks like this:
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
@JoinColumn(name = &quot;RC_ID&quot;)
public Set getConditionalCriterias() {
final Set conditionalCriterias = new HashSet();		final ConditionalCriteriaCentral condCriteria = new ConditionalCriteriaCentral();
condCriteria.setName(&quot;TEST&quot;);
condCriteria.setValue(&quot;TEST_VALUE&quot;);
conditionalCriterias.add(condCriteria);
return conditionalCriterias;
}
Thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have a case similar to the above, but even with the cascade set to ALL, i still have the same error. Do you have any other ideas about this? </p>
<p>My getter method looks like this:<br />
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)<br />
@JoinColumn(name = &#8220;RC_ID&#8221;)<br />
public Set getConditionalCriterias() {<br />
final Set conditionalCriterias = new HashSet();		final ConditionalCriteriaCentral condCriteria = new ConditionalCriteriaCentral();<br />
condCriteria.setName(&#8220;TEST&#8221;);<br />
condCriteria.setValue(&#8220;TEST_VALUE&#8221;);<br />
conditionalCriterias.add(condCriteria);<br />
return conditionalCriterias;<br />
}<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

