<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Working with Tightly Coupled (1-to-1) Entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Working with Tightly Coupled (1-to-1) Entities</description>
  <pubDate>Sat, 11 Apr 2026 13:47:16 -700</pubDate>
  <lastBuildDate>Wed, 30 May 2007 16:57:45 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=22</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Working with Tightly Coupled (1-to-1) Entities : When examining table relations...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=22&amp;PID=76#76</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 22<br /><strong>Posted:</strong> 30-May-2007 at 4:57pm<br /><br /><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><SPAN style="mso-no-proof: yes"><FONT size=2><FONT face="Arial, Helvetica, sans-serif">When examining table relations in a database, DevForce can’t tell the difference between a 1-to-Many relation and a 1-to-1 relation, so it generates relations as 1-to-Many.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>You can override this assigned cardinality in the Object Mapper to make the relation 1-to-1; doing so will change the nature of the relation properties that are generated into the two entity classes.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Instead of a relation property representing a collection, it will represent a single related object.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><SPAN style="mso-no-proof: yes"><FONT size=2><FONT face="Arial, Helvetica, sans-serif">You might want to look at the Instructional Unit on Generalization Hierarchies.&nbsp; There you will find a discussion (in the PowerPoint slides) and examples of different ways to approach your development in the<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>case where two business objects have this tight coupling.</P><DIV></DIV><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></FONT></SPAN></P>]]>
   </description>
   <pubDate>Wed, 30 May 2007 16:57:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=22&amp;PID=76#76</guid>
  </item> 
  <item>
   <title>Working with Tightly Coupled (1-to-1) Entities : Question:   Is there any built-in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=22&amp;PID=73#73</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 22<br /><strong>Posted:</strong> 30-May-2007 at 4:50pm<br /><br /><strong>Question: </strong><br /><br />Is there any built-in DevForce support for managing one-to-one relationships?<br /><br />I have a main (TableA) and a related table (TableB) which contains additional information that logically does not belong in TableA.<br /><br />The business rules are:<br />&#8226;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;There should always be exactly one TableB object.<br />&#8226;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When a TableA entity is created, a related TableB record should automatically be created.  Same when TableA entity is deleted, TableB entity is also deleted.  TableB entity cannot be deleted directly.<br />&#8226;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TableA should not expose a TableBs collection.  Instead, it should expose a single TableB object that returns the single TableB object.<br />]]>
   </description>
   <pubDate>Wed, 30 May 2007 16:50:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=22&amp;PID=73#73</guid>
  </item> 
 </channel>
</rss>