[forge-issues] [JBoss JIRA] (FORGE-1200) Add A at Column(length) on Entity attributes of type String
George Gastaldi (JIRA)
jira-events at lists.jboss.org
Fri Sep 13 11:21:03 EDT 2013
[ https://issues.jboss.org/browse/FORGE-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-1200:
-----------------------------------
Fix Version/s: 2.x Future
Affects Version/s: (was: 2.x Future)
> Add A at Column(length) on Entity attributes of type String
> ---------------------------------------------------------
>
> Key: FORGE-1200
> URL: https://issues.jboss.org/browse/FORGE-1200
> Project: Forge
> Issue Type: Feature Request
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> It would be good to be able to set the length of a string on an entity. If you do :
> {code}
> field string --named title ;
> constraint Size --onProperty title --max 2000
> {code}
> You will get :
> {code}
> @Column
> @Size(max = 2000)
> private String title;
> {code}
> 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 :
> {code}
> @Column(length = 2000)
> @Size(max = 2000)
> private String title;
> {code}
> It would be good to have extra length parameter, something like :
> {code}
> field string --named title --length 2000;
> {code}
> See : http://lists.jboss.org/pipermail/forge-dev/2012-December/002878.html
--
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