ColdFusion ORM: ORM-CFC Generator Extension for Adobe ColdFusion Builder


When we started working on ColdFusion-ORM feature (me and Rupesh), the only way to provide ORM mapping was by using the hibernate XML file (hbm.xml).  Later, we provided a way to specify the mapping in CFCs – ColdFusion-ORM would then take care of creating the hibernate mapping.  This made life easier for the ColdFusion developers.  Now we have the ORM-CFC Generator Extension in Adobe ColdFusion Builder which will generate ORM-CFCs automatically!

The Adobe CFC Generator can be downloaded from this location and the instructions to use it are here.  The Adobe CFC Generator

  • allows you to create ORM-CFCs from a set of tables.
  • allows you to configure the ORM-CFCs – change the CFC-Name, change EntityName, change property-name, select/de-select columns, add relationships and join-conditions, etc.
  • generates ORM-CFCs (of-course!)
  • generates Service CFCs for each ORM-CFC that contain certain utility methods to work with the ORM-entities

Note that the Adobe CFC Generator is provided as a sample extension.  When the extension is installed, the source-code for the extension can be found in the installed location.  Using the source code, you can modify/customize the UI/ORM-cfcs/Service-cfcs to add additional functionality.

Check out this blog post – How Do I generate ORM CFC’s??? – A nice captivate demo which shows you how to install and use ORM-CFC Generator Extension.  The CFBuilder team will be posting heavily on extensions in the coming days – do have an eye on that space.