<?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/"
		>
<channel>
	<title>Comments on: Notes: Advanced ORM in ColdFusion 9</title>
	<atom:link href="http://blog.crankybit.com/notes-max09-advanced-orm-cf9/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.crankybit.com/notes-max09-advanced-orm-cf9/</link>
	<description>Take a byte out of tech!</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:54:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: haroon</title>
		<link>http://blog.crankybit.com/notes-max09-advanced-orm-cf9/#comment-93145</link>
		<dc:creator>haroon</dc:creator>
		<pubDate>Tue, 24 May 2011 06:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=333#comment-93145</guid>
		<description>Hi  Dear 

I need your help in ColdFusion ORM Optimistic Concurrency Control. I am using Optimistic Concurrency Control in our going on project (CF orm based). 
I checked version and timestamp both type. Version and timestamp incremented correctly when record is updated but same time if other user updated that record, hibernate not throwing Exception..

Code is here(in attachment also):

Database Table: 
CREATE TABLE `campaign_type_m` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) DEFAULT &#039;&#039;,
  `CreatedDate` datetime DEFAULT NULL,
  `CreatedId` int(11) DEFAULT &#039;0&#039;,
  `ModifiedDate` datetime DEFAULT NULL,
  `ModifiedId` int(11) DEFAULT &#039;0&#039;,
  `IsActive` tinyint(1) DEFAULT &#039;0&#039;,
  `IsDeleted` bit(1) DEFAULT NULL,
  `version` int(11) DEFAULT &#039;0&#039;,
  PRIMARY KEY (`Id`),
  KEY `FK95B65EB7B0BC1027` (`CreatedId`),
  KEY `FK95B65EB7D46C1FC8` (`ModifiedId`),
  KEY `FK95B65EB793B1B88E` (`CreatedId`),
  KEY `FK95B65EB7B761C82F` (`ModifiedId`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8



Value object: campaign_type_m.cfc


    
    
    
    
    
    
    
    
    
    
    
        
    

    
        
            
            
        
    

    
        
        

            

            
                
            
                
            
        

        
            
        

        
            
        

        
            
        

        
            
        

        
            
        

        
            
        

        
            
        

        
        
    



Service: campaign_type_mService.cfc


    
        
        
    

    
        
    

    
        
    

    
        
        
        
        
        
            
        
        
            
        
        
    

    
        
        
    

    
        
         
        
            
            
        
                
        
                
    

    
        
        
    

    
        

        
        
        
        
        
            
            
        
        
            
        
            
        
    

    
        
        
        
        

        
        
        
        
        
            
        
        
            
        
        
            
            
        
        
            
        
            
        
    

    
        

        
        
        
        
        
        
            
            
        
        
            
        
        
    


application: Application.cfc



    
    
    
    
    
    

    

        
            
            
        

        
    

    
        
        
    
    




This is my code. Please check. Everytime version is increasing But when same record updated by different user. System showing “Record Updated”. While after updated one user when another user try to update, hibernate should throw an exception because record already update by someone without your knowledge. I am doing something wrong.

Please check.

Many many thanks</description>
		<content:encoded><![CDATA[<p>Hi  Dear </p>
<p>I need your help in ColdFusion ORM Optimistic Concurrency Control. I am using Optimistic Concurrency Control in our going on project (CF orm based).<br />
I checked version and timestamp both type. Version and timestamp incremented correctly when record is updated but same time if other user updated that record, hibernate not throwing Exception..</p>
<p>Code is here(in attachment also):</p>
<p>Database Table:<br />
CREATE TABLE `campaign_type_m` (<br />
  `Id` int(11) NOT NULL AUTO_INCREMENT,<br />
  `Name` varchar(255) DEFAULT &#8221;,<br />
  `CreatedDate` datetime DEFAULT NULL,<br />
  `CreatedId` int(11) DEFAULT &#8217;0&#8242;,<br />
  `ModifiedDate` datetime DEFAULT NULL,<br />
  `ModifiedId` int(11) DEFAULT &#8217;0&#8242;,<br />
  `IsActive` tinyint(1) DEFAULT &#8217;0&#8242;,<br />
  `IsDeleted` bit(1) DEFAULT NULL,<br />
  `version` int(11) DEFAULT &#8217;0&#8242;,<br />
  PRIMARY KEY (`Id`),<br />
  KEY `FK95B65EB7B0BC1027` (`CreatedId`),<br />
  KEY `FK95B65EB7D46C1FC8` (`ModifiedId`),<br />
  KEY `FK95B65EB793B1B88E` (`CreatedId`),<br />
  KEY `FK95B65EB7B761C82F` (`ModifiedId`)<br />
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8</p>
<p>Value object: campaign_type_m.cfc</p>
<p>Service: campaign_type_mService.cfc</p>
<p>application: Application.cfc</p>
<p>This is my code. Please check. Everytime version is increasing But when same record updated by different user. System showing “Record Updated”. While after updated one user when another user try to update, hibernate should throw an exception because record already update by someone without your knowledge. I am doing something wrong.</p>
<p>Please check.</p>
<p>Many many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kerr</title>
		<link>http://blog.crankybit.com/notes-max09-advanced-orm-cf9/#comment-36971</link>
		<dc:creator>Kerr</dc:creator>
		<pubDate>Thu, 03 Dec 2009 14:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=333#comment-36971</guid>
		<description>Ahh, thanks for the note on ormsettings.secondarycacheenabled=”true”!  I was at the office yesterday trying to figure out why my cache setting on a relationship wasn&#039;t working, and about pulled my hair out.  Lots of stuff to learn here with ORM, dare I say as much as when CFCs were introduced.</description>
		<content:encoded><![CDATA[<p>Ahh, thanks for the note on ormsettings.secondarycacheenabled=”true”!  I was at the office yesterday trying to figure out why my cache setting on a relationship wasn&#8217;t working, and about pulled my hair out.  Lots of stuff to learn here with ORM, dare I say as much as when CFCs were introduced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Brown</title>
		<link>http://blog.crankybit.com/notes-max09-advanced-orm-cf9/#comment-34903</link>
		<dc:creator>James Brown</dc:creator>
		<pubDate>Thu, 08 Oct 2009 06:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=333#comment-34903</guid>
		<description>We&#039;ll be posting this session on AdobeTV shortly if you want to watch the presentation online.  http://tv.adobe.com</description>
		<content:encoded><![CDATA[<p>We&#8217;ll be posting this session on AdobeTV shortly if you want to watch the presentation online.  <a href="http://tv.adobe.com" rel="nofollow">http://tv.adobe.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Wood</title>
		<link>http://blog.crankybit.com/notes-max09-advanced-orm-cf9/#comment-34899</link>
		<dc:creator>Brad Wood</dc:creator>
		<pubDate>Thu, 08 Oct 2009 04:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=333#comment-34899</guid>
		<description>Thanks for posting the updates.  I wish I could be at Max this year, but alas I must depend on people such as yourself to keep me filled in on the Adobe goodness being spread around down there.  :)</description>
		<content:encoded><![CDATA[<p>Thanks for posting the updates.  I wish I could be at Max this year, but alas I must depend on people such as yourself to keep me filled in on the Adobe goodness being spread around down there.  <img src='http://blog.crankybit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

