Why are we even talking about ORM (which stands for "Object Relational Mapping")? To me, what we should really be talking about is how to implement a "CFC Persistence" feature in a way that makes the CFML developer's job easier, not harder. Using Hibernate or any other ORM technology to implement "CFC Persistence" is one solution to the problem, but not necessarily the best one.
We don't need an ORM feature in OpenBD (or CFML), we need a "CFC Persistence" feature, which may or may not be implemented via ORM. Vince On Thu, Dec 3, 2009 at 9:44 PM, Baz <[email protected]> wrote: > Hey Tom, > > The ORM takes care of writing the code to translate queries into objects, > so you don't have to actually do that. To illustrate, take a look at this > code: > > <cfcomponent> > <cfproperty name="FirstName" type="String" /> > <cfproperty name="LastName" type="String" /> > </cfomponent> > > <cfscript> > User = CreateObject('User'); > User.setFirstName('Tom'); > User.setLastName('Thomas'); > > User.save(); > </cfscript> > > With an ORM behind it, that code just created or update a user with the > name Tom Thomas in the db. Not a single line of SQL needed to be written. > Not bad eh. > > Cheers, > Baz > > > -- > Open BlueDragon Public Mailing List > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > mailing list - http://groups.google.com/group/openbd?hl=en > > !! save a network - please trim replies before posting !! > -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
