<?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 : Negative Ids using PersistenceManager.ImportEntities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Negative Ids using PersistenceManager.ImportEntities</description>
  <pubDate>Sat, 11 Apr 2026 06:48:29 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 16:02:04 -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=218</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>Negative Ids using PersistenceManager.ImportEntities : This a known bug in ImportEntities...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=218&amp;PID=480#480</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> 218<br /><strong>Posted:</strong> 12-Jul-2007 at 4:02pm<br /><br /><FONT face=Arial color=#0000ff size=3><SPAN =156441219-04042007>This a known bug in ImportEntities fixed in DevForce 3.5.0.1 (released 3/30/2007).</SPAN></FONT>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:02:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=218&amp;PID=480#480</guid>
  </item> 
  <item>
   <title>Negative Ids using PersistenceManager.ImportEntities : I have 2 PM&#8217;s setup. On PM1 I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=218&amp;PID=479#479</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> 218<br /><strong>Posted:</strong> 12-Jul-2007 at 4:01pm<br /><br /><P =Ms&#111;normal>I have 2 PM’s setup.&nbsp; On PM1 I create a Batch entity that contains no Batch.Bills and has a BatchID of -1.&nbsp; I then import the BatchEntity into PM2 which has just been created and has no entities in its cache.&nbsp; The Batch entity still has an ID of -1.&nbsp; I do a bunch of work and now Batch.Bills is not empty.&nbsp; I then build an ArrayList containing Batch, Batch.Bills and import that ArrayList into PM1 with MergeStrategy.OverwriteChanges.&nbsp; When Batch goes into PM1 its BatchID changes from -1 to -2 and all Batch.Bills now reference -2.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>&nbsp;</o:p></P><P =MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-list: Ignore">1)<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>Why does it switch the ID on me?<o:p></o:p></P><P =MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-list: Ignore">2)<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>Can I stop it from switching the ID?<o:p></o:p></P><P =MsoListParagraph style="TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-list: Ignore">3)<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN>How do I get a reference to Batch?&nbsp; I can’t get it by ID because it’s changed.&nbsp; I can’t get it by RowState because PM1 could have any number of new Batch entities.</P>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 16:01:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=218&amp;PID=479#479</guid>
  </item> 
 </channel>
</rss>