[
https://issues.jboss.org/browse/FORGE-1332?page=com.atlassian.jira.plugin...
]
George Gastaldi reassigned FORGE-1332:
--------------------------------------
Assignee: George Gastaldi
No default nor completion for --typeName
----------------------------------------
Key: FORGE-1332
URL:
https://issues.jboss.org/browse/FORGE-1332
Project: Forge
Issue Type: Sub-task
Components: UI - Shell
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 2.x Future
When I create a new field on an existing entity I write this :
{code}
jpa-new-field --entity org.model.Test --fieldName lastname --typeName String
***SUCCESS*** Field lastname created
{code}
If I don't write {{String}} the command doesn't give me completion. I would
expect that writing the following and hitting TAB would give me some basic datatypes
(String, int, float...)
{code}
jpa-new-field --entity org.model.Test --fieldName lastname --typeName
{code}
And why not having {{String}} as the default type ? This command would create a
{{lastname}} of type {{String}} by default :
{code}
jpa-new-field --entity org.model.Test --fieldName lastname
{code}
Instead I have an error saying that "Type must be specified"
{code}
jpa-new-field --entity org.model.Test --fieldName lastname
Type must be specified
{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