What are the differences (if any) between New / CreateObject () for creating an object vs EntityNew () for creating an object in CF9 for permanent CFCs?
quote from: Exploring ColdFusion 9: EntityNew () vs NEW Operator / CreateObject ()
I really asked this question during the “Advanced ORM” session at CFUNITED and got a slightly different answer. The speaker (forgive me for recalling his name - I think he was the head of the Adobe engineer), told me that when you load an object using EntityNew (), ColdFusion actually represents it somewhat more than standard CFCs. Although this difference is not noticeable to the programmer, a component created using EntityNew () does allow the level of integration efficiency in sleep mode. Thus, he recommended that all new ORM-enabled objects be created using EntityNew ().
Using New () and CreateObject () you need to specify the full path to the CFC.
With EntityNew (), you just need to pass the name of the object.
Source: https://habr.com/ru/post/1716346/More articles:Как PHP взаимодействует с MySQL на одном сервере - phpProcessing incomparable strings in JSP date formatting - javaOn iPhone, how can I use fileHandle to download mp3 file on the fly? - urlMake XML constructor embed XML from string - ruby | fooobar.comHow to add a custom section to the Django admin home page? - pythonCan I display superscript characters in the alert () dialog box? - javascriptHosting a Jar for web applications using WebLogic - javaHow to delete a table in PostgreSQL that includes double quotes in its name - sqlOnly one instance of a model in Rails - ruby-on-railsAudience Limit in SAML Approval - c #All Articles