[Opensource] OR mapping best practices?
Rick Goeltz
goeltzrt at ornl.gov
Sun Jan 26 07:18:18 PST 2003
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
More information about the Opensource
mailing list