/SampleApplication/ColdBox3/config/ModelMappings.cfm
http://github.com/bobsilverberg/ValidateThisColdBoxPlugin · ColdFusion · 31 lines · 6 code · 2 blank · 23 comment · 0 complexity · afc30b3775d86926e742dceb1306b709 MD5 · raw file
- <!-----------------------------------------------------------------------
- ********************************************************************************
- Copyright 2005-2008 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
- www.coldboxframework.com | www.luismajano.com | www.ortussolutions.com
- ********************************************************************************
- Author : Luis Majano
- Date : 10/16/2007
- Description :
- This file is used by the BeanFactory plugin to read off model mappings.
- This is a great place to alias model paths into names so when you
- refactor you can easily do this.
-
- All you need to do is call one method: addModelMapping(alias,path)
-
- Alias : The alias to create
- Path : The model class path to alias.
-
- Example:
-
- addModelMapping('FormBean',"security.test.FormBean");
-
- ----------------------------------------------------------------------->
- <cfscript>
- /* Add all the model mappings you want */
- /* addModelMapping(alias="",path="") */
-
- addModelMapping( path="artist.ArtistService" );
-
- addModelMapping( path="form.FormService" );
- </cfscript>