Whatever message this page gives is out now! Go check it out!

Define ORM mapping

Last update:
May 18, 2026
The ORM mapping can be defined either in the CFC or in a separate Hibernate mapping file (.hbmxml). See  Advanced mapping  for details on Hibernate mapping file. The ORM mapping is defined in the CFC using ORM-specific attributes on cfcomponent and cfproperty tag.  Following example shows a CFC (ARTIST.cfc) with mapping information:
<cfcomponent persistent="true" entityname="Artist" table="Artists"> 
<cfproperty name="id" column="ARTISTID" generator="increment"> 
<cfproperty name="firstname"> 
<cfproperty name="lastname"> 
<cfproperty name="address"> 
<cfproperty name="city"> 
<cfproperty name="state"> 
<cfproperty name="postalcode"> 
<cfproperty name="email"> 
<cfproperty name="phone"> 
<cfproperty name="fax"> 
<cfproperty name="thepassword"> 
</cfcomponent>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page