[Opensource] OR mapping best practices?

Mike Traum mtraum at cirnetwork.org
Fri Jan 24 15:53:35 PST 2003


It seems to me that one of the nice benefits of OR mapping is that you can
not only have independence from a specific rdbms, but you can also insulate
the application from the specifics of the table schema. Is that true? If so,
the current best practices way of using DBObject doesn't seem proper. If you
use getField() and setField(), you are essentially accessing the column name
directly which gives you no independence from the table schema.
 
What I've been doing lately is exposing the DBObject fields with getters and
setters. I started doing this specifically so that I can use the DBObject
directly in ActionForms, but now I'm wonderiing if it should be a best
practice because of the above reason.
 
Comments?
 
mike
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030124/3c068a19/attachment-0002.htm


More information about the Opensource mailing list