Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3323046
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:15:19+00:00 2026-05-17T23:15:19+00:00

A question of ColdFusion ORM We are using ColdFusion 9 for the past 6

  • 0

A question of ColdFusion ORM

We are using ColdFusion 9 for the past 6 months and while we’ve used some of the new features, ORM is something we’ve avoided because we usually work on the same very large website. Over the years we’ve used Apache OBJ but then we moved back to CF and used our own DAO objects generated from tables to handle basic CRUD. These objects are basic and need to be regenerated manually for schema changes and do not model table relationships at all. To supplement these we have a set of gateway classes for multi-table queries. While all this is very bespoke, these DAOs and gateways do, however, give us great control over the SQL we execute, for example using locking hints and optimiser hints. Our site is busy but our database is very efficient. 

So much for the history lesson: the point of this is that we have a new site upcoming soon that will be written from scratch to handle financial transactions. We would normally use our aforementioned  DAO objects to handle CRUD and then the usual set of gateway objects for multi-table joins but I thought we might investigate using baked-in CF ORM…

So with that in mind, I’d love to hear of the lessons, tips and tricks others might have to share in regard to using ORM on a busy financial site. For example:

What’s the best way to flush your SQL ? What tips do you have for transactional ORM? How do you setup development and live sites for ORM? What about HQL? When should we just do the SQL ourselves by hand?!

Thanks in advance! 

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:15:20+00:00Added an answer on May 17, 2026 at 11:15 pm

    Short answer, YES! go for ORM!!!

    What’s the best way to flush your SQL ?

    ormflush()

    What tips do you have for transactional ORM?

    <cftransaction> or transaction {} in CFScript works fine, and even work across DSN’s, much improved in 9.0.1! watch http://tv.adobe.com/watch/max-2010-develop/coldfusion-undocumented/

    How do you setup development and live sites for ORM?

    same as without ORM, but you may look into this.ormSettings.dbCreate if u mean the DB creation part

    What about HQL?

    What about it? 🙂 Use it when u want an array of objects, but nothing stopping you from using the good old <cfquery>

    When should we just do the SQL ourselves by hand?!

    When you feel like HQL doesn’t do what you want.

    Check out: Things to watch out for in ColdFusion 9 with CF-ORM however keep in mind that some points are no longer true for 9.0.1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question might be naive as I'm new to ColdFusion programming. I have a
In another question, Using Google Map with ColdFusion, I ran into a problem of
Question Using XSLT 1.0, given a string with arbitrary characters how can I get
Straighforward question really Wondering if there was an application specific for handling coldfusion log
This question is regarding migration project. Currently the legacy Application is in ColdFusion and
I had a question. I have a coldfusion server that has javascript, and I
This is an architecture question, but its solution lies in ColdFusion and MySQL structure--or
EDIT Sorry for the confusion, here is my updated question. I am using FindBin
Question as stated in the title.
Question is pretty self explanitory. I want to do a simple find and replace,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.