Announcement Announcement Module
No announcement yet.
Wrong Plural for Category Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wrong Plural for Category

    Just curious but isn't the Plural of Category Categories?

    Roo generates the plural as Categorys.

    project --topLevelPackage com.springsource.issue
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class ~.domain.Category --testAutomatically
    field string --fieldName name --sizeMin 2 --sizeMax 255  --notNull
    entity --class ~.domain.PetCategory --testAutomatically
    field string --fieldName name --sizeMin 2 --sizeMax 255  --notNull
    controller all --package ~.web
    I understand you can override the Plural using @RooPlural I just thought the correct rule for Plural is if there is a constant before the 'y' then it should replaces the y with 'ies' and if it is a vowel then it just add an 's'.

    So Category should be Categories, Story -> Stories
    And Stay should be Stays