<?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: ColdFusion ORM : The basics</title>
	<atom:link href="http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/</link>
	<description>My Views on ColdFusion, Java and related technologies</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:41:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Curso PHP 5</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-1082</link>
		<dc:creator>Curso PHP 5</dc:creator>
		<pubDate>Wed, 24 Aug 2011 13:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-1082</guid>
		<description>&lt;strong&gt;Cursos Basico PHP...&lt;/strong&gt;

ColdFusion ORM : The basics &#124; ColdFused?...</description>
		<content:encoded><![CDATA[<p><strong>Cursos Basico PHP&#8230;</strong></p>
<p>ColdFusion ORM : The basics | ColdFused?&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 3d tv</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-1042</link>
		<dc:creator>3d tv</dc:creator>
		<pubDate>Tue, 07 Jun 2011 08:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-1042</guid>
		<description>What is the handler mapping needed in IIS 7.x to produce CAPTCHA images? The only one that works seems to be the wildcard, which is ridiculous from a security point of view. In tightening the security of ColdFusion according to the lock-down guide at http://www.adobe.com/products/coldfusion/whitepapers/pdf/91025512_cf9_ lockdownguide_wp_ue.pdf, they recommend to remove this wildcard mapping, but that seems to break captcha.</description>
		<content:encoded><![CDATA[<p>What is the handler mapping needed in IIS 7.x to produce CAPTCHA images? The only one that works seems to be the wildcard, which is ridiculous from a security point of view. In tightening the security of ColdFusion according to the lock-down guide at <a href="http://www.adobe.com/products/coldfusion/whitepapers/pdf/91025512_cf9_" rel="nofollow">http://www.adobe.com/products/coldfusion/whitepapers/pdf/91025512_cf9_</a> lockdownguide_wp_ue.pdf, they recommend to remove this wildcard mapping, but that seems to break captcha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-1038</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Fri, 03 Jun 2011 04:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-1038</guid>
		<description>What are you talking about !!Hamproonaneda? 

Woah! IT&#039;S THIS COMPLICATED?</description>
		<content:encoded><![CDATA[<p>What are you talking about !!Hamproonaneda? </p>
<p>Woah! IT&#8217;S THIS COMPLICATED?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: !!Hamproonaneda</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-1017</link>
		<dc:creator>!!Hamproonaneda</dc:creator>
		<pubDate>Fri, 06 May 2011 12:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-1017</guid>
		<description>You can give the buyer cash to offset a portion of the future payments or agree to pay the lender&#039;s fee or the cost of transporting the car to its new owner.</description>
		<content:encoded><![CDATA[<p>You can give the buyer cash to offset a portion of the future payments or agree to pay the lender&#8217;s fee or the cost of transporting the car to its new owner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Presley</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-1005</link>
		<dc:creator>Jason Presley</dc:creator>
		<pubDate>Mon, 04 Apr 2011 20:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-1005</guid>
		<description>@Rupesh Thank You very much.  I have been trying to figure out ORM and was struggling but this broke it down so I was able to get the basic CRUD functionality down.

@Grietje  Here is the code that I have in my very simple CRUD app that takes values from a from and updates them via ORM.  

HISTORICALEVENTS.CFC
component persistent=&quot;true&quot; table=&quot;HistoricalEvents&quot; {
property name=&quot;EventID&quot; fieldtype=&quot;id&quot; ormtype=&quot;int&quot; generator=&quot;identity&quot;;
property name=&quot;EventDate&quot; ormtype=&quot;date&quot;;
property name=&quot;EventTitle&quot; ormtype=&quot;string&quot; length=250;
property name=&quot;EventLocation&quot; ormtype=&quot;string&quot; length=50;
}

HISTORICALEVENTS.CFM




	    
    if(IsDefined(&#039;url.delid&#039;))
    {
    	event = EntityLoadByPK(&quot;HistoricalEvents&quot;, #url.delid#);
    	EntityDelete(event);
    	location(&quot;HistoricalEvents.cfm&quot;, false)
    }
    else if(IsDefined(&#039;url.editid&#039;))
    {
    	event = EntityLoadByPK(&quot;HistoricalEvents&quot;, #url.editid#);
    	isEdit = true;
    }
    else if(IsDefined(&#039;form.btnSubmit&#039;))
    {
    	event = new HistoricalEvents();
   		event.seteventtitle(#form.eventtitle#);
   		event.seteventlocation(#form.eventlocation#);
   		event.seteventdate(#form.eventdate#);
   		EntitySave(event);
    	location(&quot;HistoricalEvents.cfm&quot;, false)
    }

   	if(isDefined(&#039;form.eventid&#039;))
   	{
   		event = EntityLoadByPK(&quot;HistoricalEvents&quot;, #form.eventid#);
   		event.setEventTitle(#form.EventTitle#);
   		event.setEventLocation(#form.EventLocation#);
   		event.setEventDate(#form.EventDate#);
   		EntitySave(event);
   		location(&quot;HistoricalEvents.cfm&quot;, false)
   }
    
    ormreload();




	
		Event Title
		Event Location
		Event Date
	
	
		
			#eventtitle#
			#eventlocation#
			#dateformat(eventdate, &quot;short&quot;)#
			&lt;a href=&quot;HistoricalEvents.cfm?delid=#eventid#&quot; rel=&quot;nofollow&quot;&gt;Del&lt;/a&gt;
			&lt;a href=&quot;HistoricalEvents.cfm?editid=#eventid#&quot; rel=&quot;nofollow&quot;&gt;Edit&lt;/a&gt;
		
	






	Title: &lt;input type=&quot;text&quot; name=&quot;EventTitle&quot; value=&quot;#event.getEventTitle()#&quot;&gt;
	Location: &lt;input type=&quot;text&quot; name=&quot;EventLocation&quot; value=&quot;#event.getEventLocation()#&quot;&gt;
	Date: &lt;input type=&quot;text&quot; name=&quot;EventDate&quot; value=&quot;#dateformat(event.getEventDate(), &#039;short&#039;)#&quot;&gt;
	
	



HOPE THAT HELPS!</description>
		<content:encoded><![CDATA[<p>@Rupesh Thank You very much.  I have been trying to figure out ORM and was struggling but this broke it down so I was able to get the basic CRUD functionality down.</p>
<p>@Grietje  Here is the code that I have in my very simple CRUD app that takes values from a from and updates them via ORM.  </p>
<p>HISTORICALEVENTS.CFC<br />
component persistent=&#8221;true&#8221; table=&#8221;HistoricalEvents&#8221; {<br />
property name=&#8221;EventID&#8221; fieldtype=&#8221;id&#8221; ormtype=&#8221;int&#8221; generator=&#8221;identity&#8221;;<br />
property name=&#8221;EventDate&#8221; ormtype=&#8221;date&#8221;;<br />
property name=&#8221;EventTitle&#8221; ormtype=&#8221;string&#8221; length=250;<br />
property name=&#8221;EventLocation&#8221; ormtype=&#8221;string&#8221; length=50;<br />
}</p>
<p>HISTORICALEVENTS.CFM</p>
<p>    if(IsDefined(&#8217;url.delid&#8217;))<br />
    {<br />
    	event = EntityLoadByPK(&#8221;HistoricalEvents&#8221;, #url.delid#);<br />
    	EntityDelete(event);<br />
    	location(&#8221;HistoricalEvents.cfm&#8221;, false)<br />
    }<br />
    else if(IsDefined(&#8217;url.editid&#8217;))<br />
    {<br />
    	event = EntityLoadByPK(&#8221;HistoricalEvents&#8221;, #url.editid#);<br />
    	isEdit = true;<br />
    }<br />
    else if(IsDefined(&#8217;form.btnSubmit&#8217;))<br />
    {<br />
    	event = new HistoricalEvents();<br />
   		event.seteventtitle(#form.eventtitle#);<br />
   		event.seteventlocation(#form.eventlocation#);<br />
   		event.seteventdate(#form.eventdate#);<br />
   		EntitySave(event);<br />
    	location(&#8221;HistoricalEvents.cfm&#8221;, false)<br />
    }</p>
<p>   	if(isDefined(&#8217;form.eventid&#8217;))<br />
   	{<br />
   		event = EntityLoadByPK(&#8221;HistoricalEvents&#8221;, #form.eventid#);<br />
   		event.setEventTitle(#form.EventTitle#);<br />
   		event.setEventLocation(#form.EventLocation#);<br />
   		event.setEventDate(#form.EventDate#);<br />
   		EntitySave(event);<br />
   		location(&#8221;HistoricalEvents.cfm&#8221;, false)<br />
   }</p>
<p>    ormreload();</p>
<p>		Event Title<br />
		Event Location<br />
		Event Date</p>
<p>			#eventtitle#<br />
			#eventlocation#<br />
			#dateformat(eventdate, &#8220;short&#8221;)#<br />
			<a href="HistoricalEvents.cfm?delid=#eventid#" rel="nofollow">Del</a><br />
			<a href="HistoricalEvents.cfm?editid=#eventid#" rel="nofollow">Edit</a></p>
<p>	Title: &lt;input type=&quot;text&quot; name=&quot;EventTitle&quot; value=&#8221;#event.getEventTitle()#&#8221;&gt;<br />
	Location: &lt;input type=&quot;text&quot; name=&quot;EventLocation&quot; value=&#8221;#event.getEventLocation()#&#8221;&gt;<br />
	Date: &lt;input type=&quot;text&quot; name=&quot;EventDate&quot; value=&#8221;#dateformat(event.getEventDate(), &#8217;short&#8217;)#&#8221;&gt;</p>
<p>HOPE THAT HELPS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grietje  Goedkoop</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-1000</link>
		<dc:creator>Grietje  Goedkoop</dc:creator>
		<pubDate>Fri, 25 Feb 2011 18:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-1000</guid>
		<description>Hi,
I just started to familiarize myself with ORM and I wonder if you would also use ORM to update a record via a form, for instance in a cms? In all examples I see static update data like &quot;williams&quot; or &quot; New York&quot; and the same to select a particular record like &quot;ID=2&quot;. 
What about updating via a form, like address.setAddress_1(’#form.address_1#′) or &quot;ID=#url.IDofthe record#&quot;

Or maybe I simply don&#039;t understand the functionality of ORM?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I just started to familiarize myself with ORM and I wonder if you would also use ORM to update a record via a form, for instance in a cms? In all examples I see static update data like &#8220;williams&#8221; or &#8221; New York&#8221; and the same to select a particular record like &#8220;ID=2&#8243;.<br />
What about updating via a form, like address.setAddress_1(’#form.address_1#′) or &#8220;ID=#url.IDofthe record#&#8221;</p>
<p>Or maybe I simply don&#8217;t understand the functionality of ORM?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-965</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 04 Nov 2010 23:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-965</guid>
		<description>By the way, this feature (fully qualified path = alias) is absolutely horrific when it comes to reusability of components. Your only option is to stick your cfcs in the wwwroot if you want to use the same cfc in multiple apps? No fun. Need to have a much more flexible alias methodology when it comes to flash remoting.</description>
		<content:encoded><![CDATA[<p>By the way, this feature (fully qualified path = alias) is absolutely horrific when it comes to reusability of components. Your only option is to stick your cfcs in the wwwroot if you want to use the same cfc in multiple apps? No fun. Need to have a much more flexible alias methodology when it comes to flash remoting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-939</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 26 Jul 2010 14:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-939</guid>
		<description>Don,

It sound like you have a many-to-many relationship with a link table between volunteers and organizations.

I don&#039;t know the details, but this can be accomplished.  There is a type of &quot;many-to-many&quot; in your relationship types on the cfproperty tag.  Also, there is a linktable attribute that you use.  So I&#039;m pretty sure it can handle it, you just have to set it up.  Look up many-to-many relationships in the documentation.</description>
		<content:encoded><![CDATA[<p>Don,</p>
<p>It sound like you have a many-to-many relationship with a link table between volunteers and organizations.</p>
<p>I don&#8217;t know the details, but this can be accomplished.  There is a type of &#8220;many-to-many&#8221; in your relationship types on the cfproperty tag.  Also, there is a linktable attribute that you use.  So I&#8217;m pretty sure it can handle it, you just have to set it up.  Look up many-to-many relationships in the documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-938</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Fri, 23 Jul 2010 19:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-938</guid>
		<description>After extensive googling I have come to the conclusion that ORM can not handle pivot tables.  Thus I still have to know SQL to work with a database and ORM is rapidly becoming useless to me.</description>
		<content:encoded><![CDATA[<p>After extensive googling I have come to the conclusion that ORM can not handle pivot tables.  Thus I still have to know SQL to work with a database and ORM is rapidly becoming useless to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/comment-page-1/#comment-937</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Wed, 14 Jul 2010 13:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/07/coldfusion-orm-the-basics/#comment-937</guid>
		<description>The release notes are out for CF 9.0.1 and it does not seem to include a fix for passing null values from Flex to a CF ORM object that I mentioned Feb. 19, above.  Is there a fix for this?  Thanks.</description>
		<content:encoded><![CDATA[<p>The release notes are out for CF 9.0.1 and it does not seem to include a fix for passing null values from Flex to a CF ORM object that I mentioned Feb. 19, above.  Is there a fix for this?  Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

