cayenne-commits mailing list archives

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


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:
>             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:!default.jspa
For more information on JIRA, see:


View raw message