[Opensource] OR mapping best practices?
=?gb2312?B?546LIOW8mA==?=
wangjinsong73 at hotmail.com
Sun Jan 26 17:23:43 PST 2003
opensource:
thank you!
hongwang
>From: Rick Goeltz <goeltzrt at ornl.gov>
>Reply-To: opensource at jcorporate.com
>To: opensource at jcorporate.com
>Subject: RE: [Opensource] OR mapping best practices?
>Date: Sun, 26 Jan 2003 10:18:18 -0500
>
>Gang:
>
>[Mike Traum said...]
> > If you
> > use getField() and setField(), you are essentially accessing the
>column name
> > directly which gives you no independence from the table schema.
>
>I've been using a technique I learned from the Expresso Job code.
>For
>example getField(Employee.FLD_NAME). It's a bit more code but less
>typing because Eclipse does the completion for me ;) Perhaps this
>should be an Expresso "best practice."
>
>I've got a customer who wants to maintain the data dictionary in an
>Excel spreadsheet. My first step was to read the spreadsheet using
>POI. Next I'm going to write a DBObject that will "do the right
>things" based on the information in the spreadsheet. I think it
>will
>work fine.
>
> > What I've been doing lately is exposing the DBObject fields with
>getters and
> > setters.
>
>I've been writing getters but for a different reason. I've been
>using
>JSTL and I like it a lot; reminds me of Velocity. For me, it is the
>shortest path from a query/DBObject to JSP output. I see that 5.0.3
>includes the JSTL jars and tld's, so someone else is using it also.
>
>
>Rick
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com
More information about the Opensource
mailing list