All my code these days is object oriented, maybe to the extreme I sometimes think!

That alone is worth an upvote.

Personally I've found that modelling data objects (or real life objects) literally is less useful than I'd been taught as an OO whelp growing up.

Far more useful has been to model processes or semantics. i.e. what do you really DO with "Industry" rows? If you start with the literal model then you have to redesign the semantic layer on top of that anyway and you end up with nasty object interrelation soup that abstracts a simple sql statement.

Do you really have such breadth of real world operations on this data that you need universal 1:1 access to the database objects modeled as objects? (You may I suppose.)

That said, you may be committed to this course of action for one reason or another, which would make this "observational commentary" rather than a suggestion ;)

$0.01

Me

In reply to Re: Design Question - I've gone object mad! by Voronich
in thread Design Question - I've gone object mad! by Cagao

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.