-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
None
It would be good to be able to set the length of a string on an entity. If you do :
field string --named title ; constraint Size --onProperty title --max 2000
You will get :
@Column @Size(max = 2000) private String title;
Even in Java EE 7, the integration between JPA and Bean Validation hasn't been made. So this doesn't create a column in the DB with 2000 char long. What you would need is :
@Column(length = 2000) @Size(max = 2000) private String title;
It would be good to have extra length parameter, something like :
field string --named title --length 2000;
See : http://lists.jboss.org/pipermail/forge-dev/2012-December/002878.html
- relates to
-
FORGE-2101 jpa-new-field command should have a --not-nullable attribute
- Closed