
568
DEVELOPING
COLDFUSION 9 APPLICATIONS
ColdFusion ORM
Las
t
upda
te
d 8/5/2010
Inheritance mapping
If the object you need to persist has a hierarchy, the CFCs of that object hierarchy need to be mapped to the relational
tables such that the entire hierarchy is persisted.
There are multiple strategies followed for inheritance mapping:
•
Table per hierarchy
Attribute
Req/Opt
Default
Description
batchsize
Optional
An integer value that specifies the "
batchsize
" for
lazily fetching instances of this collection.
elementcolumn
Required
Specifies the column name that contains the data to
be fetched for collection.
elementtype
Required
Data type of the value. See
ORM data types
for details.
fieldtype
Required
Should be a collection.
fkcolumn
Optional
The foreign key column in the table.
If foreign key column is not specified and
useDBForMapping
is set to
true
in
ORMSetting
,
ColdFusion automatically determines the Foreign Key
column after inspecting the database.
lazy
Optional
true
Specifies if loading is to be done lazily:
true
false
See
Lazy Loading
for details.
name
Required
Name of the collection property.
optimisticlock
Optional
true
true
false
orderby
Optional
Specifies the Order By string.
readonly
Optional
false
Value are:
true
false
If you set it to true, the collection never changes and
can be cached.
structkeycolumn
Required
Column name in the table that will be used as key of
struct.
structkeyType
Required
Specifies the data type of the key, when
type=struct
.
For the entire list of data types, see the Data Type
section.
table
Required
Name of the table from where the collection will be
fetched.
type
Optional
array
Specifies if the collection type is:
array
struct
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...