Pluralization of Object Names

From: Gary Affonso (glist..reywether.com)
Date: Wed Jan 19 2005 - 01:43:12 EST

  • Next message: Elia Morling: "OT: DB design"

    The answer here seems obvious but I'm so new to Cayenne (3-4 hours :-)
     that I thought I'd write and double-check I'm not going to hurt myself.

    I've got a bottom-up situation where I've inherited a database. The
    previous developer did a decent job with naming, I've got tables with names
    like "products", "units", etc. Note that the table names are plural, as
    they should be since the tables hold lots of each entity.

    When I do a "Reengineer Database Schema" in the Cayenne Modeler it pulls in
    all my tables and creates entities. But the entities are left with plural
    names. This doesn't make sense (to me anyway) since that entity will be an
    object that represents a single entity from that table. Right?

    So am I getting into hot-water if I just go through and un-pluralize the
    entity names?

    Tools like Middlegen seem to "do the right thing" with regard to
    de-pluralization, so maybe this is an item on the wish list?

    I'm happy to do it by hand, I just want to make sure I'm not breaking
    something.

    Thanks!

    - Gary

    -- 
    Greywether, Inc.
    



    This archive was generated by hypermail 2.0.0 : Wed Jan 19 2005 - 01:43:17 EST