
539
DEVELOPING
COLDFUSION 9 APPLICATIONS
ColdFusion ORM
Las
t
upda
te
d 8/5/2010
Property Name
Default
Description
autogenmap
true
Specifies whether ColdFusion should automatically generate mapping for the
persistent CFCs. If
autogenmap=false
, mapping should be provided in the
form of .HBMXML files.
automanageSession
Added in ColdFusion 9.0.1
true
Lets you specify if ColdFusion must manage Hibernate session automatically.
•
If enabled: ColdFusion manages the session completely. That is, it decides
when to flush the session, when to clear the session, and when to close the
session.
•
If disabled: The application is responsible for managing flushing, clearing, or
closing of the session. The only exception is (in the case of transaction),
when the transaction commits, the application flushes the session.
ColdFusion closes the ORM session at the end of request irrespective of this flag
being enabled or disabled.
cacheconfig
Specifies the location of the configuration file that should be used by the
secondary cache provider.This setting is used only when
secondarycacheenabled=true
.
See “
Secondary level cache
” on page
590 for details.
cacheprovider
ehcache
Specifies the cache provider that should be used by ORM as secondary cache.
The values can be:
•
Ehcache
•
JBossCache
•
Hashtable
•
SwarmCache
•
OSCache
Fully qualified name of the class for any other cache provider.
This setting is used only when
secondarycacheenabled=true
.
See “
Secondary level cache
” on page
590 for details.
catalog
Specifies the default Catalog that should be used by ORM.
cfclocation
Specifies the directory (or array of directories) that should be used by
ColdFusion to search for persistent CFCs to generate the mapping. If
cfclocation
is set, ColdFusion looks at only the paths specified in it. If it is not
set, ColdFusion looks at the application directory, its sub-directories, and its
mapped directories to search for persistent CFCs.
datasource
Specifies the data source that should be used by ORM. If it is not specified here,
then the data source specified for the application is picked up.
dbcreate
none
ColdFusion ORM can automatically create the tables for your application in the
database when ORM is initialized for the application. This can be enabled by
using
dbcreate
in
ormsettings
.
dbCreate
takes the following values:
•
update
: Setting this value creates the table if it does not exist or update the
table if it exists.
•
dropcreate
: Setting this value drops the table if it exists and then creates it.
•
none
(default): Setting this value does not change anything in the database
schema.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...