DEVELOPING COLDFUSION 9 APPLICATIONS
ColdFusion ORM
•
: This is used with a
foreign
the primary key of the associated object. This generator would need the property parameter, which needs to be
specified in the
attribute. The value of the
params
See
One-to-one relationships
•
: See www.hibernate.org/5.html.
seqhilo
•
: See www.hibernate.org/5.html.
uuid
•
: See www.hibernate.org/5.html.
guid
•
: See www.hibernate.org/5.html.
select
•
: See www.hibernate.org/5.html.
sequence-identity
Column
To indicate that a
cfproperty
specified for
, it is mapped as a column property.
cfproperty
Syntax
<cfproperty
name="Property name"
fieldtype="column"
column="column_name"
persistent="true|false"
formula="SQL expression"
ormtype="ormtype"
update="[true]|false"
insert="[true]|false"
optimisticLock="[true]|false"
generated="true|[false]"
length="column_length"
precision="precision"
scale="scale"
index="index_name"
unique = "true|[false]"
uniquekey="uniquekey_name"
notnull="true|[false]"
dbdefault="default_col_value"
sqltype="sql_type">
Example
To specify a simple property:
<cfproperty name="FIRSTNAME"/>
To specify a property which has a different name than that of the column name:
<cfproperty name="LNAME" column="LASTNAME"/>
To specify a property which should be read-only:
<cfproperty name="password" column="THEPASSWORD" insert="false" update="false">
primary key association. In this case, the primary key is the same as
<one-to-one>
param
for details.
maps to a column in the table, specify
Last updated 8/5/2010
property should be the name of the relationship property.
fieldtype="column"
549
. If the
is not
fieldtype