cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-1607) [PATCH] add pluralize method to StringUtils for use in templates
Date Wed, 23 Nov 2011 07:13:40 GMT

     [ https://issues.apache.org/jira/browse/CAY-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1607.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M4

applied. Just changed static method to instance method on a theory that the later will be
easier to customize if needed.
                
> [PATCH] add pluralize method to StringUtils for use in templates
> ----------------------------------------------------------------
>
>                 Key: CAY-1607
>                 URL: https://issues.apache.org/jira/browse/CAY-1607
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Modeler
>    Affects Versions: 3.1M2
>         Environment: 3.1-snapshot
>            Reporter: John Huss
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.1M4
>
>         Attachments: StringUtils pluralize.patch
>
>
> It would be helpful to have pluralize method to use in the templates, primarily so methods
can be generated like this:
> Entity: Invoice
> public static List<Invoice> fetchInvoices(...)
> Entity: Bonus
> public static List<Bonus> fetchBonuses(...)
> This patch includes a rudimentary pluralizer method to support this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message