Re: Some suggestions

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Thu Aug 28 2008 - 02:24:41 EDT

  • Next message: Aristedes Maniatis: "Re: Some suggestions"

    Inflector package is quite lightweight, so I think it's OK if we add it to
    core POM (unpublished). I also did not find Inflector in main Apache repo,
    but I can see it in JBoss repository. Is it fine if we add that repo to the
    project?

    2008/8/14, Lachlan Deck <lachlan.dec..mail.com>:
    >
    > On 10/08/2008, at 11:49 PM, Michael Gentry wrote:
    >
    > On Fri, Aug 8, 2008 at 10:17 AM, Andrus Adamchik <andru..bjectstyle.org>
    >> wrote:
    >>
    >>> +1 for the pluggable naming engine, and making the first alternative
    >>> implementation to work like you described, i.e.:
    >>>
    >>> * drop the "to" from to-one relatinship names
    >>> * replace "Array" with "s" for to-many.
    >>> * use FK as a basis for to-one relationship name
    >>>
    >>
    >>
    >> For a to-many, it isn't as simple as adding an "s" at the end for a
    >> to-many. At least not in English. For example, if you have a to-man
    >> to an Address object, you probably want "getAddresses" and not
    >> "getAddresss" as the method name.
    >>
    >
    > net.java.dev.inflector may help for plurals.
    >
    > with regards,
    > --
    >
    > Lachlan Deck
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Aug 28 2008 - 02:26:23 EDT