You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "John Huss (JIRA)" <ji...@apache.org> on 2011/08/30 17:11:37 UTC

[jira] [Created] (CAY-1607) [PATCH] add pluralize method to StringUtils for use in templates

[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
         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1607) [PATCH] add pluralize method to StringUtils for use in templates

Posted by "Andrus Adamchik (Closed) (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Updated] (CAY-1607) [PATCH] add pluralize method to StringUtils for use in templates

Posted by "John Huss (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Huss updated CAY-1607:
---------------------------

    Attachment: StringUtils pluralize.patch

> [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
>         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira