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:38 UTC
[jira] [Updated] (CAY-1607) [PATCH] add pluralize method to
StringUtils for use in templates
[ 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