TR ORM Generator Code for ColdFusion Builder

I’ve been demoing an extension I made for generating ORM code CFCs, views, controllers and services. It stopped working with the public beta of ColdFusion. I’ve updated it to work with the public beta. I’ve tweaked it in a few other places, but it’s by no means completely tested. But if you like it and have ideas, I’m open to allowing other authors in. (We’ll just have to change the name of the tool. )

Please note, this is not an official Adobe product. It’s just code that I’ve been using that I’m willing to share. There is an ORM generator included with ColdFusion Builder; this is just another alternative.

Terry Ryan ORM Jumpstart at RIAForge

3 thoughts on “TR ORM Generator Code for ColdFusion Builder

  1. I like the fact that your ext creates remote services, but how do you access them in your code? Your demo doesn’t ever use them. Like the search functions.

    Like

  2. @Jeff. The remote extension are for use with Flex (or as webservices.) I wrote this extension for showing off the capabilities of ColdFusion with Flash Builder’s Data/Services option.

    So, I don’t use them in my ColdFusion code, but I do use them from Flex. Does that make sense?

    Like

  3. Having problems with this extension with the beta3 cfbuilder plugin on latest eclipse jee, winxp pro

    The method setOutput was not found in component C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcapplicationCFC.cfc.
    Ensure that the method is defined, and that it is spelled correctly.

    The error occurred in C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcapplicationCFC.cfc: line 6
    Called from C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcgenerator.cfc: line 224
    Called from C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlersormCFCGenerator.cfm: line 16

    4 : variables.lineBreak = createObject(“java”, “java.lang.System”).getProperty(“line.separator”);
    5 :
    6 : This.setOutput(FALSE);
    7 : This.setExtension(‘cfc’);
    8 : variables.constructorArray = ArrayNew(1);

    ——————————————————————————–

    Resources:
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.

    Browser Jakarta Commons-HttpClient/3.1
    Remote Address 127.0.0.1
    Referrer
    Date/Time 03-Mar-10 11:11 AM

    Stack Trace
    at cfapplicationCFC2ecfc1724968195$funcINIT.runFunction(C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcapplicationCFC.cfc:6) at cfgenerator2ecfc203021163$funcCREATEAPPCFC.runFunction(C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcgenerator.cfc:224) at cformCFCGenerator2ecfm1055382107.runPage(C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlersormCFCGenerator.cfm:16)

    coldfusion.runtime.TemplateProxy$InvalidMethodNameException: The method setOutput was not found in component C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcapplicationCFC.cfc.
    at coldfusion.runtime.TemplateProxy.throwInvalidMethodNameException(TemplateProxy.java:748)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:477)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
    at cfapplicationCFC2ecfc1724968195$funcINIT.runFunction(C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcapplicationCFC.cfc:6)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
    at coldfusion.runtime.CFPage.___createObjectInternal(CFPage.java:8370)
    at coldfusion.runtime.CFPage._createObject(CFPage.java:8338)
    at cfgenerator2ecfc203021163$funcCREATEAPPCFC.runFunction(C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlerscfcgenerator.cfc:224)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490)
    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
    at cformCFCGenerator2ecfm1055382107.runPage(C:InetpubwwwrootcfbextensionsTerryRyansORMCodeJumpstarthandlersormCFCGenerator.cfm:16)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363)
    at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
    at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
    at coldfusion.CfmServlet.service(CfmServlet.java:200)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s