G
Gordon Levi
Qu0ll said:"lipska the kat" wrote in message
Reply at the end, sorry for the lack of indentation..,
Well I'm not sure what kind of Java applications you write but in the
world I inhabit the client request "we just want to add one more field
to this form" is guaranteed to send a shiver down the spine as it's
usually followed by "How much?, for adding a single field? you gotta be
kidding".
To add a single persisted field to an input form requires the
modification of most if not all of the layers of an application.
Adding a single field to a product line for example would probably
require the modification of all the CRUD methods for that line, not to
mention the inclusion of the field in the search algorithms, modifying
the validation layer, incorporating the field in a logical place in the
HCI, modifying and refactoring the relevant code etc etc. Anything that
can reduce the amount of work required to implement such an apparently
trivial change has got to be a good idea.
Having said that, I don't used ORMs myself, I mean I've tried, I've
really tried but I start reading the documentation and my eyes glaze
over and I discover that I need to learn 'another' (query) language and
I decide that it's just not worth the effort. Stick to SQL, accept the
overhead and I don't think you can go far wrong.
Just my 2 euros worth
--------------------------
I find myself actually agreeing with you again.
Adding even a single field to the underlying data structures is *not*
straightforward at all in a typical Java application.
I'm sorry if you both have had a hard time adding a field to a
database but it is not relevant to my post. I believe that adding a
field to a database should require _no_ alterations to any program
that accesses the database unless the program needs to process the
field. The extra code that processing the field requires could take
from one day to several man years. If you work for a large corporation
you can change one day to one month but that is beside the point.