== Writing Decorators ==
A 'decorator' is used when you wish to write your own CFC to be used to represent data, in place of the Transfer generated Object.
An example of this being to write a User.cfc to represent a User record within a database.
The 'decorator' that has been written wraps around the TransferObject that is generated by Transfer and automagically extends any public method generated on the decorated TransferObject.
=== Authoring a Decorator ===
Decorators are set using the 'decorator' attribute on the 'object' element in the [[Transfer Configuration File]]
Decorators must extend [http://docs.transfer-orm.com/html/transferapi/transfer/com/TransferDecorator.html transfer.com.TransferDecorator]
=== Creating your own methods ===
You can create your own methods inside a decorator, which can reference the automagically generated methods (or not).
For example, if you wanted to return the full name of a user, you could write:
Where 'firstname' and 'lastname' are properties on the User