<?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 : changing the names of the tables</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : changing the names of the tables</description>
  <pubDate>Wed, 15 Apr 2026 09:23:05 -700</pubDate>
  <lastBuildDate>Tue, 06 Nov 2007 09:07:39 -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=533</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>changing the names of the tables : You know, it would be rather nice...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1880#1880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 533<br /><strong>Posted:</strong> 06-Nov-2007 at 9:07am<br /><br />You know, it would be rather nice to be able to just change the name of the source table within the utility.&nbsp; A little remapper popup to make the job easier...just point the class&nbsp;to the renamed table and all would be well.&nbsp; I think the reasoning that this doesn't exist in DevForce&nbsp;is that database table naming rarely changes once created, so the feature&nbsp;would receive&nbsp;a low priority rating.]]>
   </description>
   <pubDate>Tue, 06 Nov 2007 09:07:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1880#1880</guid>
  </item> 
  <item>
   <title>changing the names of the tables : Hi Bill, Thank you for your reply....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1876#1876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=60" rel="nofollow">Dominique</a><br /><strong>Subject:</strong> 533<br /><strong>Posted:</strong> 04-Nov-2007 at 11:44pm<br /><br />Hi Bill,<br />Thank you for your reply. I guess I will do it that way :-)<br /><br />It would be nice to have the possibility to rename the table from inside the mapper which could take care of all the relations. I guess it is possible to do that right into the ".orm" file.<br />But my new chrismas wish would be a rename function with the following use case :-)<br />1&gt; open mapper<br />2&gt; Choose "Do not validate mapping, allow all edits<br />3&gt; Choose "rename tables" (maybe with a possibility to choose from the db schema)<br />4&gt; Mapper has updated the mapping inclusive the defined relations :-)<br /><br />Dominique<span style="font-size:10px"><br /><br />Edited by Dominique - 04-Nov-2007 at 11:44pm</span>]]>
   </description>
   <pubDate>Sun, 04 Nov 2007 23:44:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1876#1876</guid>
  </item> 
  <item>
   <title>changing the names of the tables : Here is where the ORM is a real...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1863#1863</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=24" rel="nofollow">Linguinut</a><br /><strong>Subject:</strong> 533<br /><strong>Posted:</strong> 02-Nov-2007 at 9:30am<br /><br />Here is where the ORM is a real gem!&nbsp; <DIV>&nbsp;</DIV><DIV><strong>The key idea is to keep your class name the same</strong>.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>After the name of the table is changed in the DB, open the ORM mapper and allow it to update the objects/schema (first option).&nbsp; You'll be notified that there is a change.&nbsp; Jot down the class name that will have a new database table name (e.g. "User").&nbsp; Remove the offending class.&nbsp; This may not feel like the right thing to do, but at this point no changes have been made yet to your model project.&nbsp; All is well.&nbsp; Next, add the new table from the datasource.&nbsp; Rename the class which will default to the new table name (e.g. "aa_User") to the original class name (e.g. "User").&nbsp; Save the mapper's changes and the model project will be updated with the database table name change.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>The best thing is that ALL of your code that references that business class will be unaffected.&nbsp; Only you and the DBA will have to know that anything even happened.</DIV><DIV>&nbsp;</DIV><DIV>Hope that helps,</DIV><DIV>Bill</DIV>]]>
   </description>
   <pubDate>Fri, 02 Nov 2007 09:30:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1863#1863</guid>
  </item> 
  <item>
   <title>changing the names of the tables : Hi, I will need to change the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1859#1859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=60" rel="nofollow">Dominique</a><br /><strong>Subject:</strong> 533<br /><strong>Posted:</strong> 02-Nov-2007 at 7:14am<br /><br />Hi,<br />I will need to change the names of the tables in the db (ex from User to aa_User)and I can't find directives for how I could update the mapping to reflect these changes. Could you give me a pointer to ressource explaining how to do that? <br />thanks :-)<br />Dominique]]>
   </description>
   <pubDate>Fri, 02 Nov 2007 07:14:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=533&amp;PID=1859#1859</guid>
  </item> 
 </channel>
</rss>