<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Investigating Hibernate Associations &#8211; One to One</title>
	<atom:link href="http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/feed/" rel="self" type="application/rss+xml" />
	<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/</link>
	<description>My oasis in the desert of Project Management</description>
	<lastBuildDate>Mon, 07 Dec 2009 13:51:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mr. President</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-295</link>
		<dc:creator>Mr. President</dc:creator>
		<pubDate>Fri, 20 Mar 2009 04:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-295</guid>
		<description>My example may not be appropriate, here&#039;s something from hibernate &lt;a href=&quot;http://www.hibernate.org/hib_docs/reference/en/html/example-parentchild-bidir.html&quot; rel=&quot;nofollow&quot;&gt;docs&lt;/a&gt; which should help.</description>
		<content:encoded><![CDATA[<p>My example may not be appropriate, here&#8217;s something from hibernate <a href="http://www.hibernate.org/hib_docs/reference/en/html/example-parentchild-bidir.html" rel="nofollow">docs</a> which should help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-294</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Tue, 17 Mar 2009 17:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-294</guid>
		<description>Thanks for your time. 
Let me further elaborate on the problem. 

All primary key ID as assigned by hibernate are set. 

The issue is only when phone.setPersonId(this.id);

The personId in Phone is still zero. 

Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Thanks for your time.<br />
Let me further elaborate on the problem. </p>
<p>All primary key ID as assigned by hibernate are set. </p>
<p>The issue is only when phone.setPersonId(this.id);</p>
<p>The personId in Phone is still zero. </p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. President</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-293</link>
		<dc:creator>Mr. President</dc:creator>
		<pubDate>Tue, 17 Mar 2009 15:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-293</guid>
		<description>From an efficiency point of view an update should not be  necessary. If you refer to my post, after the one-to-one tag addition mentioned for Person.hbm.xml, I have recommended addition of the following code:

public void setPhone(Phone phone) {
	 	phone.setPersonId(this.id);
	 	this.phone = phone;

 	}

This should set the personid in the phone table. In case instead of the assigned generator, you are using a database sequence. Refer to hibernate documentation section 5.1.13 for one-to-one mapping. Within the same, have a look at sub-topic primary key association. That should provide a solution. Hope this helps.</description>
		<content:encoded><![CDATA[<p>From an efficiency point of view an update should not be  necessary. If you refer to my post, after the one-to-one tag addition mentioned for Person.hbm.xml, I have recommended addition of the following code:</p>
<p>public void setPhone(Phone phone) {<br />
	 	phone.setPersonId(this.id);<br />
	 	this.phone = phone;</p>
<p> 	}</p>
<p>This should set the personid in the phone table. In case instead of the assigned generator, you are using a database sequence. Refer to hibernate documentation section 5.1.13 for one-to-one mapping. Within the same, have a look at sub-topic primary key association. That should provide a solution. Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-292</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Mon, 16 Mar 2009 18:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-292</guid>
		<description>Thankyou. I am just trying to do that but it the value gets persisted as 0. from the SQL I can see that it triggers a insert but does not trigger a update. 

So the value of personid in Phone has value 0. 

From what I understand hibernate is suppsoed to late resolve this value but it does not seem to do so. Any idea would be most helpful.</description>
		<content:encoded><![CDATA[<p>Thankyou. I am just trying to do that but it the value gets persisted as 0. from the SQL I can see that it triggers a insert but does not trigger a update. </p>
<p>So the value of personid in Phone has value 0. </p>
<p>From what I understand hibernate is suppsoed to late resolve this value but it does not seem to do so. Any idea would be most helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. President</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-291</link>
		<dc:creator>Mr. President</dc:creator>
		<pubDate>Mon, 16 Mar 2009 15:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-291</guid>
		<description>Yes. An int can be used instead of a VARCHAR as personid. Refer hibernate documentation section 4.1.2</description>
		<content:encoded><![CDATA[<p>Yes. An int can be used instead of a VARCHAR as personid. Refer hibernate documentation section 4.1.2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-290</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Mon, 16 Mar 2009 14:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-290</guid>
		<description>Thanks good article.

Will the one-to-one relationship work if I have an int instead of VARCHAR as personId ?</description>
		<content:encoded><![CDATA[<p>Thanks good article.</p>
<p>Will the one-to-one relationship work if I have an int instead of VARCHAR as personId ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. President</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-286</link>
		<dc:creator>Mr. President</dc:creator>
		<pubDate>Mon, 23 Feb 2009 10:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-286</guid>
		<description>Sorry Toni, your table structure information did not come thru. However you can map your tables to this blog post example and you should be able to get one-to-one mapping done.</description>
		<content:encoded><![CDATA[<p>Sorry Toni, your table structure information did not come thru. However you can map your tables to this blog post example and you should be able to get one-to-one mapping done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-285</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Mon, 23 Feb 2009 09:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-285</guid>
		<description>Dear Sir 
Can you help me to make hobernate ORM,
I have 2 table( pp and gudangbarang)
I will join 2 table using one-t-one connection, can help me to join this.
This is the table 




  
    
      
    
    
    
    
    
    
    
    
    
    
    
    
    
  




and 





  
    
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  



please help me.
thanks</description>
		<content:encoded><![CDATA[<p>Dear Sir<br />
Can you help me to make hobernate ORM,<br />
I have 2 table( pp and gudangbarang)<br />
I will join 2 table using one-t-one connection, can help me to join this.<br />
This is the table </p>
<p>and </p>
<p>please help me.<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The YPI</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-276</link>
		<dc:creator>The YPI</dc:creator>
		<pubDate>Thu, 05 Feb 2009 05:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-276</guid>
		<description>Nice intro to one  to one mapping...

Thanks</description>
		<content:encoded><![CDATA[<p>Nice intro to one  to one mapping&#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soniya</title>
		<link>http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-267</link>
		<dc:creator>soniya</dc:creator>
		<pubDate>Mon, 19 Jan 2009 05:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://technicalmumbojumbo.wordpress.com/2007/08/12/investigating-hibernate-relationships-one-to-one/#comment-267</guid>
		<description>one-to-one name=&quot;gender&quot; class=&quot;Gender&quot; property-ref=&quot;genderId&quot;

This is the line I have written in person.hbm.xml along with the property and column tags as you have given in the example. I also have written gender.hbm.xml
Hope you will be able to help me out.
wit this much of the info. 

Regards
Soniya</description>
		<content:encoded><![CDATA[<p>one-to-one name=&#8221;gender&#8221; class=&#8221;Gender&#8221; property-ref=&#8221;genderId&#8221;</p>
<p>This is the line I have written in person.hbm.xml along with the property and column tags as you have given in the example. I also have written gender.hbm.xml<br />
Hope you will be able to help me out.<br />
wit this much of the info. </p>
<p>Regards<br />
Soniya</p>
]]></content:encoded>
	</item>
</channel>
</rss>
