Created
August 5, 2010 14:53
-
-
Save tpryan/509846 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component mappedSuperClass="true"{ | |
public string function getFirstName(){ | |
return "Yo"; | |
} | |
public string function getRealFirstName(){ | |
return variables.firstName; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component{ | |
This.name = "cfartgallery"; | |
This.ormenabled = true; | |
This.datasource = "cfartgallery"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component extends="_artistsSuperEntity" persistent="true"{ | |
property name="ARTISTID" fieldtype="id" ; | |
property name="FIRSTNAME" type="string"; | |
property name="LASTNAME" type="string"; | |
property name="ADDRESS" type="string"; | |
property name="CITY" type="string"; | |
property name="STATE" type="string"; | |
property name="POSTALCODE" type="string"; | |
property name="EMAIL" type="string"; | |
property name="PHONE" type="string"; | |
property name="FAX" type="string"; | |
property name="THEPASSWORD" type="string"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset artist = entityLoad("artists", 1, true) /> | |
<cfoutput> | |
<p>GetFirstName = #artist.getFirstName()#</p> | |
<p>GetRealFirstName = #artist.getRealFirstName()#</p> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment