ColdFusion ORM

10 views
Skip to first unread message

Phillip Senn

unread,
Jul 17, 2009, 10:04:52 PM7/17/09
to coldfu...@googlegroups.com
Page 527 of DEV ELOPING COLDFUSION 9 APPLICATIONS says:
"Each persistent CFC in ColdFusion application maps to a table in the
database. Each property in the persistent CFC maps to a column in the
table."

That's not my idea of object oriented programming.
To map directly to tables and columns seems like your working with
tables and columns rather than objects.

Mark Mandel

unread,
Jul 17, 2009, 10:16:35 PM7/17/09
to coldfu...@googlegroups.com
Phillip - how would you map a single object to a relational database then?

Seems the most appropriate way to me.  At least as a starting point.

Also remember, there are many advanced options for mapping in Hibernate allowing you to do inheritance, embedded objects, joining between tables etc.

That is really only the beginning state of developing with ORM.  I suggest you do further reading before jumping to conclusions.

Mark
--
E: mark....@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

Sean Corfield

unread,
Jul 17, 2009, 10:54:21 PM7/17/09
to coldfu...@googlegroups.com

Remember that with Hibernate you can build your object model and
ignore the database and let Hibernate create and manage the DB for you
automatically - the very definition of OOP :)
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Reply all
Reply to author
Forward
0 new messages