Entries for month: November 2008
Transfer object without the DB
Posted by [Justice] in Transfer-ORM on November 19, 2008
There was an interesting post by John K yesterday on the Transfer-dev list, where he was asking about creating a transfer object that had no database behind it. Basically, define the object in XML and then use the get / set methods to persist data around in a nice auto-generated cfc 9one of the things that Transfer is do good at). There was some discussion whether Transfer would let you do this or not, so I had to give it a shot. Turns out, you can define your object without any database and it works fine!
This started my brain going, you could define decorators against your objects, and use those to email a contact form that gets populated to your transient bean. I think its kinda a slick way of making objects, and it would certainly be simpler to define the XML properties than creating a new cfc with get / set methods. Anyone see any downfalls?
tears (Happy Friday!)
Oh, let me taste your tears, the tears of unfathomable sadness!
![]() |
|


Recent Comments