CF9中的New / CreateObject()和EntityNew()之间的区别是什么? [英] Differences between New/CreateObject() vs EntityNew() in CF9 for persistent CFC?

查看:137
本文介绍了CF9中的New / CreateObject()和EntityNew()之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

引用自:学习ColdFusion 9:EntityNew()与NEW Operator / CreateObject()


我实际上在
的高级ORM会话在CFUNITED
期间提出了这个问题,并得到一个略有不同的答案。
发言者(原谅我不是
记住他的名字 - 我想他是
头Adobe工程师),告诉我,
当你加载一个对象使用
EntityNew(),ColdFusion实际上
呈现它在一个稍微不同的
方式比标准CFC。虽然
差别对于
程序员来说是不明显的,但使用
EntityNew()创建的组件在Hibernate
集成级别上提供了一些
的效率。因此,他
建议所有新的启用ORM的
对象用EntityNew()创建。



What are the differences (if any) between New/CreateObject() to create an object vs EntityNew() to create an entity in CF9 for persistent CFC?

解决方案

quoted from: Learning ColdFusion 9: EntityNew() vs. The NEW Operator / CreateObject()

I actually asked this question during the "Advanced ORM" session at CFUNITED and got a slightly different answer. The speaker (forgive me for not remembering his name - I think he was the head Adobe engineer), told me that when you load an object using EntityNew(), ColdFusion actually presents it in a slightly different way than a standard CFC. While this difference is not noticeable to the programmer, a component created using EntityNew() does afford some efficiencies at the Hibernate integration level. As such, he recommended that all new ORM-enabled objects be created with EntityNew().

这篇关于CF9中的New / CreateObject()和EntityNew()之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆