
552
DEVELOPING
COLDFUSION 9 APPLICATIONS
ColdFusion ORM
Las
t
upda
te
d 8/5/2010
Syntax
<cfproperty
name="fieldname"
fieldtype="version"
column="column name"
ormtype="type"
generated="true|[false]"
insert="[true]|false">
Example
To create a simple version property:
<cfproperty name="version" fieldtype="version">
Attribute
Time stamp
Use the
timestamp
attribute to indicate that the column contains time-stamped data. Use the
timestamp
attribute as
an alternative to the
version
attribute.
Syntax
<cfproperty
name="fieldname"
fieldtype="timestamp"
column="column name"
generated="true|[false]"
source="[vm]|db">
Attribute
Req/Opt
Default
Description
column
Optional
The name of the column that contains versioned data
fieldtype
Required
Should be “version” for primary key.
generated
Optional
never
Specifies if the versioned field is generated by the
database. The values are
"never"
and
"always"
.
insert
Optional
Specifies if the versioned field should be included in
the SQL INSERT statement.
name
Required
Name of the property.
ormtype
Optional
int
The data type can be any one of the following:
integer
long
short
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...