|
ColdFusion 9.0 Resources |
ORMReloadDescriptionReloads ORM objects dynamically. ReturnsReturns ORM session factory instance. CategoryFunction SyntaxORMReload() See AlsoExamplecomponent
{
this.name = Hash( GetCurrentTemplatePath() );
/* define the application wide datasource */
this.datasource = "cfartgallery";
/* enable hibernate support for this application */
this.ormenabled = true;
/* create a struct of ORM settings */
this.ormsettings = {};
/* turn on event handling */
this.ormsettings.eventhandling = true;
/**
* @output true
*/
public boolean function onRequestStart( targetPage )
{
/* this is to ensure that ORM is up-to-date for demo */
ORMReload();
return true;
}
}
|