<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Against All Odds - ORM</title>
			<link>http://www.ppshein.net/index.cfm</link>
			<description>A blog for ColdFusion, Android, jQuery, jQueryMobile, Oracle, HL7 and other Web-based programming languages, Web Server like IIS7 and RDMS like Oracle, Microsoft SQL and MySQL.</description>
			<language>en-us</language>
			<pubDate>Wed, 22 May 2013 08:57:46 -0700</pubDate>
			<lastBuildDate>Wed, 23 Mar 2011 18:47:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>pyaephyoeshein@gmail.com</managingEditor>
			<webMaster>pyaephyoeshein@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>pyaephyoeshein@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Coldfusion ORM in CFScript version</title>
				<link>http://www.ppshein.net/index.cfm/2011/3/23/Coldfusion-ORM-in-CFScript-version</link>
				<description>
				
				In these days, I feel like myself to write all of CF coding in CFScript version. Because most of CF Developers said CFScript coding can enhance your projects than normal CFML coding. That&apos;s why I want to develop my simple ORM projects with CFScript as testing purpose.


&lt;code&gt;
&lt;!--- Application.cfm ---&gt;

component output=&quot;false&quot; {
THIS.name = &quot;CFScriptORM&quot;;
THIS.applicationTimeout = createTimeSpan(0, 1, 0, 0);
THIS.clientManagement = false;
THIS.datasource = &quot;cfartgallery&quot;;

THIS.loginStorage = &quot;cookie&quot;;
THIS.sessionManagement = true;
THIS.sessionTimeout = createTimeSpan(0, 0, 30, 0);

THIS.ormenabled = true;
THIS.ormsettings = {};

public void function onError(required any Exception, required string EventName) {
 
  if (ListFindNoCase(&quot;onSessionEnd, onApplicationEnd&quot;, Arguments.EventName) IS 0)
  {
          WriteOutput(&quot;&lt;h2&gt;An unexpected error occurred.&lt;/h2&gt;&quot;);
          WriteOutput(&quot;&lt;p&gt;Please provide the following information to technical support:&lt;/p&gt;&quot;);
          WriteOutput(&quot;&lt;p&gt;Error Event: #Arguments.EventName#&lt;/p&gt;&quot;);
          WriteOutput(&quot;&lt;p&gt;Error details: #Arguments.Exception.message#&lt;br&gt;&quot;);
  }
return;
}
}
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<category>ORM</category>
				
				<pubDate>Wed, 23 Mar 2011 18:47:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/3/23/Coldfusion-ORM-in-CFScript-version</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Need to restart CF server when I create new CFC for ORM</title>
				<link>http://www.ppshein.net/index.cfm/2011/3/6/Need-to-restart-CF-server-when-I-create-new-CFC-for-ORM</link>
				<description>
				
				Today, free feel to test simple ORM project for my future project. As some developers said, ORM can provide us clean Code, high performance and can develop database application faster. Likewise, developers don&apos;t need to stick into database manipulation just like before. According Adobe Coldfusion documentation, they describe as follow:

ColdFusion ORM automates most of these tasks, which:
&lt;ul&gt;
&lt;li&gt;Makes application code cleaner and more manageable&lt;/li&gt;
&lt;li&gt;Enhances your productivity and lets you develop database applications faster&lt;/li&gt;
&lt;li&gt;Creates applications that can run faster because of built-in ORM optimizations&lt;/li&gt;
&lt;li&gt;Minimizes the amount of code you write&lt;/li&gt;
&lt;/ul&gt;

That&apos;s why I&apos;ve created simple ORM application.

application.cfc
&lt;code&gt;
&lt;cfset this.name = &quot;myORMtest&quot;&gt;
&lt;cfset this.ormenabled = &quot;true&quot;&gt; 
&lt;cfset this.datasource = &quot;myORMtestDSN&quot;&gt;
&lt;/code&gt;

NH_NATIONALITY.cfc
&lt;code&gt;
&lt;cfcomponent persistent=&quot;true&quot;&gt; 
    &lt;cfproperty name=&quot;id&quot; column = &quot;NATIONALITY_ID&quot; generator=&quot;increment&quot;&gt; 
    &lt;cfproperty name=&quot;NATIONALITY_CODE&quot;&gt; 
    &lt;cfproperty name=&quot;NAME&quot;&gt; 
&lt;/cfcomponent&gt;
&lt;/code&gt;

index.cfm
&lt;code&gt;
&lt;cfform action=&quot;index.cfm&quot; method=&quot;post&quot;&gt;
	&lt;cfinput type=&quot;Text&quot; name=&quot;txtCode&quot; required=&quot;Yes&quot;&gt;
	&lt;input type=&quot;Submit&quot; name=&quot;btnSubmit&quot;&gt;
&lt;/cfform&gt;

&lt;cfif StructKeyExists(form, &quot;btnSubmit&quot;)&gt;
	&lt;cfset getQueryNA = EntityLoad(&quot;NH_NATIONALITY&quot;, {NATIONALITY_CODE = form.txtCode})&gt;
	&lt;cfdump var=&quot;#getQueryNA#&quot;&gt;
&lt;/cfif&gt;
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<category>ORM</category>
				
				<pubDate>Sun, 06 Mar 2011 20:49:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/3/6/Need-to-restart-CF-server-when-I-create-new-CFC-for-ORM</guid>
				
				
			</item>
			
		 	
			</channel></rss>