Changes between Version 3 and Version 4 of HowTos/ORMIntegration/InstallingAnORM

Show
Ignore:
Timestamp:
11/15/11 16:33:30 (14 years ago)
Author:
bob.silverberg@… (IP: 174.119.126.240)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTos/ORMIntegration/InstallingAnORM

    v3 v4  
    4646 * [http://www.nodans.com/index.cfm/2007/7/24/Installing-Transfer-in-ModelGlueUnity] 
    4747 * [http://docs.transfer-orm.com/] 
     48 
     49 
     50== ColdFusion ORM == 
     51ColdFusion ORM is available in ColdFusion versions 9.0 and above, so no installation is necessary. 
     52 
     53Create a 'transfer' directory in {webroot}/fooproject/config and also a 'transfer' directory inside {webroot}/fooproject/model. 
     54 
     55Make sure that you have ORM enabled in your Application.cfc file. An example is:  
     56{{{ 
     57<cfset this.ormenabled = true /> 
     58<cfset this.datasource = "FooDataSourceName" /> 
     59<cfset this.ormsettings = {flushAtRequestEnd=false,automanageSession=false} /> 
     60}}} 
     61 
     62 
     63Connect ColdFusion ORM to !ModelGlue through !ColdSpring. Open {webroot}/fooproject/config/ColdSpring.xml and paste the following definitions: 
     64 
     65 
     66{{{ 
     67 <!-- Example ColdSpring.xml for ColdFusion ORM in an MG:3 application --> 
     68 <beans> 
     69  ... 
     70  <alias alias="ormAdapter" name="ormAdapter.cfORM" /> 
     71  <alias alias="ormService" name="ormService.cfORM" /> 
     72 </beans> 
     73}}} 
     74 
     75You should now be able to use !ModelGlue [[http://docs.model-glue.com/wiki/HowTos/HowToUseGenericDatabaseMessages Generic Database Messages]] and [[http://docs.model-glue.com/wiki/HowTos/HowToUseScaffolds Scaffolds]] powered by ColdFusion ORM in your application. 
     76 
     77'''References''' 
     78 
     79 * [http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSD628ADC4-A5F7-4079-99E0-FD725BE9B4BD.html]