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

Please check out my new site: http://ja.mesbrown.com/

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:

view plain print about
1component        persistent        = true
2            accessors        = true
3            entityname        = 'Contact'
4            hint            = 'This object holds contacts and their associated properties'
5            datasource        = 'mydatasource' {
6
7property name='ContactID' type='numeric' persistent=true ormtype='integer' fieldtype='id' generator='increment';
8}

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

TweetBacks

Comments

Recent Comments

RSS

Subscribe