<?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 : BaseEntity - Auditable Entity and Auditing</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : BaseEntity - Auditable Entity and Auditing</description>
  <pubDate>Thu, 11 Jun 2026 06:14:12 -700</pubDate>
  <lastBuildDate>Fri, 18 Apr 2008 11:55:05 -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=724</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>BaseEntity - Auditable Entity and Auditing : I haven&amp;#039;t studied the auditing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2846#2846</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 18-Apr-2008 at 11:55am<br /><br />I haven't studied the auditing capabilities in detail yet.&nbsp; You guys probably know more than I do.<DIV>&nbsp;</DIV><DIV>Ward created the auditing capability in Cabana primarily as a demonstration.&nbsp; I'm not sure he envisioned it's being used as a base framework for other applications.</DIV><DIV>&nbsp;</DIV><DIV>I agree with Dan that a Cabana module to manage the EntityClass and EntityProperty model objects is in order--a simple SummaryDetail or SearchSummaryDetail page should do the job.&nbsp; That would get you the ability to manually add, delete and edit the metadata for audited entities (assuming they inherit from AuditableEntity).&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>I could also imagine a view that displays a grid of all entities that inherit from AuditableEntity with check boxes&nbsp;to automatically populate the EntityClass objects.&nbsp; A similar mechanism might be used on each&nbsp;EntityClass object&nbsp;to populate its child EntityProperty objects.</DIV><DIV>&nbsp;</DIV><DIV>I think I'd prefer this approach rather than doing it directly using TSQL in the database.</DIV><DIV>&nbsp;</DIV><DIV>Bill J.</DIV>]]>
   </description>
   <pubDate>Fri, 18 Apr 2008 11:55:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2846#2846</guid>
  </item> 
  <item>
   <title>BaseEntity - Auditable Entity and Auditing : you will need to look up cursors/loops...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2840#2840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 17-Apr-2008 at 11:00am<br /><br /><P>you will need to look up cursors/loops for transact sql as well as the built in functions for getting the tables in the database and the properties in the tables</P><DIV>&nbsp;</DIV><DIV>foreach table in database</DIV><DIV>foreach property in table</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; add prop to table</DIV>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 11:00:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2840#2840</guid>
  </item> 
  <item>
   <title>BaseEntity - Auditable Entity and Auditing : Have a bit of pseudo code for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2838#2838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=92" rel="nofollow">HFloyd</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 17-Apr-2008 at 10:41am<br /><br />Have a bit of pseudo code for the suggested SQL?<br><br>Thanks, Heather<br>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 10:41:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2838#2838</guid>
  </item> 
  <item>
   <title>BaseEntity - Auditable Entity and Auditing : I haven&amp;#039;t done it yet, but...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2837#2837</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 17-Apr-2008 at 10:23am<br /><br />I haven't done it yet, but I intend to build a module that allows me to set/add info to those tables. This will allow a user to update which fields they want to track. For now I did it by hand.<DIV>&nbsp;</DIV><DIV>You could also just write a query to add all the properties to the table directly in SQL Server Manager. Then just go through and update the ways to track (i.e. edit, add, delete).</DIV>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 10:23:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2837#2837</guid>
  </item> 
  <item>
   <title>BaseEntity - Auditable Entity and Auditing : Thanks, orcities, for that tip...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2836#2836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=92" rel="nofollow">HFloyd</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 17-Apr-2008 at 10:05am<br /><br />Thanks, orcities, for that tip about the metaEntityClass and metaEntityProperty tables - I wouldn't have figured that out. <br><br>I had no problem adding all my classes to the metaEntityClass table, but am a bit unsure what I am supposed to put into the metaEntityProperty table. <br><br>Am I supposed to put all my class properties into that table? Any tips for doing that in a fast or automated way?<br><br>Heather<br><br>]]>
   </description>
   <pubDate>Thu, 17 Apr 2008 10:05:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2836#2836</guid>
  </item> 
  <item>
   <title>BaseEntity - Auditable Entity and Auditing : You are on the right track. Each...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2735#2735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 21-Mar-2008 at 12:48pm<br /><br />You are on the right track. Each time you want to be able to audit a table you need to inherit the AuditableEntity. Will also need to add entries into the metaEntityClass and metaEntityProperty tables to coincide with the table.]]>
   </description>
   <pubDate>Fri, 21 Mar 2008 12:48:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2735#2735</guid>
  </item> 
  <item>
   <title>BaseEntity - Auditable Entity and Auditing :  Hi, I am making slow progress...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2685#2685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=92" rel="nofollow">HFloyd</a><br /><strong>Subject:</strong> 724<br /><strong>Posted:</strong> 13-Mar-2008 at 12:56pm<br /><br />Hi, <br><br>I am making slow progress with my first CAB app. I used the Wizard and then used the "<span style=""><span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: n&#111;ne; font-stretch: normal;"></span></span>IdeaBlade Object Mapper" to attach to my own database (in which I have both my own business tables as well as several of the "application" tables I copied from the IdeaBlade Tutorial DB). <br><br>The questions I have relate to the implementation of <b>Auditing</b>... I didn't see any explanation of Auditing in the PDF doc nor on the website/forums.<br><br>So, to the questions: <br><br>1. What is the difference between "BaseEntity" and "AuditableEntity"? My guess would be that any BOs I want audited should inherit from "AuditableEntity"? <br><br>2. Since I deleted the "Employee" class, I get a build error at this point (AuditableEntity):<br><br>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;Set the global entity "Audit Columns" for this application.&lt;/summary&gt;<br>&nbsp;&nbsp;&nbsp; /// &lt;remarks&gt;<br>&nbsp;&nbsp;&nbsp; /// Modeled on the columns in the Employee entity.<br>&nbsp;&nbsp;&nbsp; /// &lt;/remarks&gt;<br>&nbsp;&nbsp;&nbsp; private static void SetGlobalAuditColumns() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuditColumnManager.SetGlobalAuditColumns(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Employee.CrtnUsrIdEntityColumn.ColumnName,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Employee.CrtnTsEntityColumn.ColumnName,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Employee.ModUsrIdEntityColumn.ColumnName,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Employee.ModTsEntityColumn.ColumnName<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<br>&nbsp;&nbsp;&nbsp; }<br><br>I assume that this has to do with assigning the "who created or modified this record" data to each row...<br><br>Since I kept the Users table, I assumed that I could use that to determine the "who" rather than the Employee, so I changed the code to:<br><br>private static void SetGlobalAuditColumns() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AuditColumnManager.SetGlobalAuditColumns(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SecurityUser.CreatedByUserIdEntityColumn.ColumnName,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SecurityUser.CreatedDateEntityColumn.ColumnName,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SecurityUser.ModifiedByUserIdEntityColumn.ColumnName,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SecurityUser.ModifiedDateEntityColumn.ColumnName<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<br><br><br>I was able to build/run the application, but I just want to be sure I am on the right track here...<br><br>Thanks!<br><br>Heather<br><span style="font-size:10px"><br /><br />Edited by HFloyd - 13-Mar-2008 at 12:57pm</span>]]>
   </description>
   <pubDate>Thu, 13 Mar 2008 12:56:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=724&amp;PID=2685#2685</guid>
  </item> 
 </channel>
</rss>