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"> |