Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1491 Perform a review of Forge 2.x
  3. FORGE-1535

Being able to update a field in an entity instead of "Field already exists"

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 2.1.0.Final
    • 2.0.0.Final
    • Scaffold
    • None

    Description

      When you create a new field in an entity and, for example, need to change its datatype, there is not way to update it. Forge tells you that the field already exists :

      [Artist.java]$ jpa-new-field --named age
      ***SUCCESS*** Field age created
      [Artist.java]$ jpa-new-field --named age --typeName int
      Field 'age' already exists
      

      If would be good if Forge would ask to replace it :

      [Artist.java]$ jpa-new-field --named age --typeName int
      Field 'age' already exists
      Do you want to ovewritte it (y/N) ? 
      [Artist.java]$ y
      ***SUCCESS*** Field age created
      

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: