Skip to content

Instantly share code, notes, and snippets.

@iotashan
Created November 3, 2011 00:47
Show Gist options
  • Save iotashan/1335447 to your computer and use it in GitHub Desktop.
Save iotashan/1335447 to your computer and use it in GitHub Desktop.
<cfcomponent name="CustomerConfig" entityname="CustomerConfig"
table="CustomerConfigs" persistent="true" output="false">
<cfproperty name="customerConfigID" type="numeric" fieldtype="id"/>
<cfproperty name="systemConfigs" singular="systemConfig" lazy="false" fieldtype="one-to-many" cfc="SystemConfig" fkcolumn="customerConfigID" inverse="true"/>
</cfcomponent>
<cfcomponent name="SystemConfig" entityname="SystemConfig"
table="SystemConfigs" persistent="true" output="false">
<cfproperty name="systemConfigID" type="numeric" fieldtype="id"/>
<cfproperty name="systemConfigServerName" type="string" default=""/>
<cfproperty name="customerConfig" lazy="false" fieldtype="many-to-one" cfc="CustomerConfig" fkcolumn="customerConfigID"/>
</cfcomponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment