Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3580

Roo commands allows to create two entities with the same name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.5.RELEASE
    • Fix Version/s: 1.3.1.RC2, 2.0.0.M1
    • Component/s: @ CORE
    • Labels:
      None

      Description

      Roo commands allows to create two entities with the same name.

      project --topLevelPackage org.springroo.testproject
      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY 
      entity jpa --class ~.domain.MyEntity
      field string --fieldName fieldOne
      

      Executing the previous commands ROO generates entity called MyEntity with a field called fieldOne.

      Then execute:

      entity jpa --class ~.domain.MyEntity
      

      When try to create MyEntity again, ROO deletes previous MyEntity entity and replace it with the new one, that not has any field.

        Attachments

          Activity

            People

            Assignee:
            jcgarcia Juan Carlos García del Canto
            Reporter:
            jcgarcia Juan Carlos García del Canto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: