[forge-issues] [JBoss JIRA] (FORGE-1535) Being able to update a field in an entity instead of "Field already exists"

Antonio Goncalves (JIRA) issues at jboss.org
Thu Jan 30 09:27:28 EST 2014


Antonio Goncalves created FORGE-1535:
----------------------------------------

             Summary: Being able to update a field in an entity instead of "Field already exists"
                 Key: FORGE-1535
                 URL: https://issues.jboss.org/browse/FORGE-1535
             Project: Forge
          Issue Type: Sub-task
          Components: Scaffold
    Affects Versions: 2.0.0.Final
            Reporter: Antonio Goncalves
             Fix For: 2.x Future


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 :

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

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

{code}
[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
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list