ColdFusioning: Pronunciation \kold-fy�-zhn-ing\ Noun: The action of one that writes ColdFusion.

ColdFusion Now Supports Multiple Data Sources for ORM

With the ColdFusion 9.0.1 update, you can now use multiple data sources with ORM. When you create your objects, use the "datasource" attribute to specify which each should use. Below is an example of it in use:


component        persistent        = true
            accessors        = true
            entityname        = 'Contact'
            hint            = 'This object holds contacts and their associated properties'
            datasource        = 'mydatasource' {

property name='ContactID' type='numeric' persistent=true ormtype='integer' fieldtype='id' generator='increment';
}

If you don't specify a data source, the default data source is used.



Comments