[
https://issues.jboss.org/browse/FORGE-1535?page=com.atlassian.jira.plugin...
]
George Gastaldi closed FORGE-1535.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.0.1.Final
(was: 2.x Future)
Resolution: Done
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
Assignee: George Gastaldi
Fix For: 2.0.1.Final
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