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"

    Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.Final
    • Fix Version/s: 2.1.0.Final
    • Component/s: Scaffold
    • Labels:
      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
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gastaldi George Gastaldi
                Reporter:
                agoncal Antonio Goncalves
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: