[
https://issues.jboss.org/browse/FORGE-1537?page=com.atlassian.jira.plugin...
]
George Gastaldi reopened FORGE-1537:
------------------------------------
Reopening this issue, since some collateral effects were found
Able to create a constraint on a non existing field
---------------------------------------------------
Key: FORGE-1537
URL:
https://issues.jboss.org/browse/FORGE-1537
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
I've created a few fields on an entity and add some constraints to those fields.
Everything is ok. But when I add a constraint to a field that doesn't exit, then it
adds the constraint to the last created field (looks a bit random actually).
So if I type :
{code}
[Artist.java]$ constraint-add --onProperty dummy --constraint NotNull
***SUCCESS*** Constraint NotNull successfully configured
{code}
dummy doesn't exist, so it adds NotNull to other attributes
--
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