Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
Date: Tue, 13 Jun 2006 18:52:31 GMT
Message-Id: <pan.2006.06.13.18.52.27.504834_at_gEEEmail.com>
frebe73 wrote:
> You don't change the name of a column by the same reason why you don't
> change a method name in an interface.
I change them each time their ... behavior ... migrates to something else.
> What is the benefits with changing a
> column name?
Maybe mistakes with databases are harder to fix than other mistakes.
> If you really need to change column (or table) names, I
> suggest the use of constants while building your SQL statements,
What if I get the constant's name wrong too?
(The secret word here is "view", guys...)
> or a
> framework (such as butler.sourceforge.net) that allows you to change names
> at any time.
Or maybe a lite application-specific framework.
> Or just go to the Edit menu and choose Search/Replace.
Searching and replacing live code is beyond tacky.
-- PhlipReceived on Tue Jun 13 2006 - 20:52:31 CEST