Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 557

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
ColdFusion ORM
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
Attribute
Req/Opt
Optional
column
fieldtype
Required
Optional
generated
insert
Optional
name
Required
Optional
ormtype
Time stamp
Use the
attribute to indicate that the column contains time-stamped data. Use the
timestamp
an alternative to the
version
Syntax
<cfproperty
name="fieldname"
fieldtype="timestamp"
column="column name"
generated="true|[false]"
source="[vm]|db">
Default
never
int
attribute.
Last updated 1/20/2012
Description
The name of the column that contains versioned data
Should be "version" for primary key.
Specifies if the versioned field is generated by the
database. The values are
"never"
Specifies if the versioned field should be included in
the SQL INSERT statement.
Name of the property.
The data type can be any one of the following:
integer
long
short
timestamp
552
and
"always"
.
attribute as

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents