nes
Posts: 137
Nickname: nn
Registered: Jul, 2004
|
|
Re: Gavin King on Being Explicit
|
Posted: Sep 27, 2007 9:20 AM
|
|
> > Another issue with auto creating your objects from a DB is > that the DB tables, usually, aren't particularly OO. So > the resultant auto-created objects tend to be only > minimally OO. Depending on your needs and philosophies, > the ease of creating them may or not be worth the issues > working with them.
You are of course 100% correct on that. If you care about the model being "pure" OO (for some definition of "pure") while operating on a relational database you will need to create some kind of mapping. On the other hand, if you just create objects that are verbatim copies of the database schema, as it is often done, you are just creating boilerplate. The particular example given by Gavin does not seem to make that good of a case for the former.
|
|